System.Diagnostics.Process p = new System.Diagnostics.Process();
p.EnableRaisingEvents = false;
p.StartInfo.FileName = "calc";
p.Start();
for exp. this the code that i use to open calculator
but how can i use , appminimize, maximize, apphide, normal, show etc. command that i can use in visual basic ?
Sorry if i had make about tags.
You can use
ProcessStartInfoto specify a window style. I have tried doing that withcalc.exe, but that does not work. For other executables e.g.sol.exeit’s ok.Note that if you create a shortcut to
calcand set the window style in the properties of the shortcut that does not work either. Maybe the executable sets it’s own window style after being started.