strProcess="d:\1.exe"//自己写的测试windows窗口程序
//设置程序启动参数
iProcess.StartInfo.UserName = "Administrator";
#region//格式化密码
System.Security.SecureString password = new System.Security.SecureString();
char[] pass = "jsgd".ToCharArray();
for (int i = 0; i < pass.Length; i++)
{
    password.AppendChar(pass[i]);
}
#endregion
iProcess.StartInfo.Password = password;
iProcess.StartInfo.CreateNoWindow = true;
iProcess.StartInfo.WorkingDirectory = Path.GetDirectoryName(strProcess);
iProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
iProcess = Process.Start(strProcess);1.exe程序能启动,在任务管理器里能看到,但是无法显示1.exe的界面?