Launch a window application and wait for complete
Posted on 2006-03-23
Following code works fine if I want to launch an application program:
Dim iAppID As Integer = Shell(appPath, AppWinStyle.MaximizedFocus)
If System.IO.File.Exists(appPath) = True Then
However, If I want to launch an application and force the operation system to wait until the application has been terminated before allowing any other action to be performed. How do I do? I heard of ExecuteAndWait method. How does that work? The code will be in form_load event.
Thanks very much