Process.waitforexit(0

Dim MyProcess as Process=Process.Start(FileName)
MyProcess.WaitforExit

I am confused about the best way to spawn new processes and work with them.
I was thinking that the waitforExit event would halt operation of my application until the spawned application was closed.  What I find is that my application will still respond to events such as button clicks and continue operation.  Am I misunderstanding what 'waitforExit' is supposed to accomplish.

Thanks,
Fred Herring




Answer this question

Process.waitforexit(0