I have a C # WinForms program that starts another process. The program then waits for the process to complete.
I am currently using Process.WaitForExit (), but this means that while my program is waiting for the process to complete, it does not redraw and looks like it is not responding.
Is there any way for the window of the process that my program starts to be modal to my main form (i.e. you cannot go back to my program and redraw the windows)?
Basically, I want to do something like Form.ShowDialog (), except that the process window is a form that will be displayed as a dialog.
source
share