That actually doesn't work for non user interface programs. Try it with cmd in .NET 2005. I know every process that is getting started so I won't run into this. Thanks.
When I do Process.Start for anything I run into issues. If I just run the code the MainWindowHandle is 0, but if I step through the code it comes back with a valid handle. Any ideas?
I did this little check and it appears Start doesn't wait until the process has a handle, cause the messagebox comes up.
Me.SuspendLayout()
Dim runProcess As New System.Diagnostics.Process
Dim info As New System.Diagnostics.ProcessStartInfo
info.FileName =...
I have this small chunk of code in an MDI form. When I press a menu item it does this:
Me.SuspendLayout()
Dim runProcess As New System.Diagnostics.Process
Dim info As New System.Diagnostics.ProcessStartInfo
info.FileName = "NotePad.exe"
info.WindowStyle...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.