Can not start an desktop application in C#'s Process -


I use NormPad.XA and CAL with the following code. I can see that the application process is active in Xpress but the application UI does not appear on the screen. I got this information inside the process P - "Before the information requested, the process must be eliminated" and the exit code 1200, 5084 etc. what is wrong? Thanks!

Codes -

  ProcessStandardInfoInfo = new ProcessStartInfo (@ "C: \ windows \ system32 \ notepad.exe"); PInfo.UseShellExecute = false; PInfo.CreateNoWindow = false; PInfo.WindowStyle = Process WindowStyle.Normal; Process P = Process Start (pInfo); P.EnableRaisingEvents = True; Int exitcode = piid; P.WaitForExit (); P.Close (); Try  

Whoops:

  Process = process Start (pInfo); P.EnableRaisingEvents = True; P.WaitForExit (); Int exitCode = p.ExitCode; P.Close ();  

Comments