>>I have done this before but I can't find the class to use. I want to start an application (notepad.exe) from within my application at runtime and I don't want my code to continue running until the notepad application is closed. How do I do this?
>
>Have you tried the System.Diagnostics.Process.Start() approach?
>
>
>System.Diagnostics.Process.Start(lcExec)
>
Michel,
Not exactly what I wanted but it got me into the correct namespace and the right class. Below is exactly what I wanted:
System.Diagnostics.Process.Start("notepad.exe").WaitForExit();
MessageBox.Show("Yo");
The messagebox will not appear until the notepad app is closed.
Thanks,
Einar
Semper ubi sub ubi.