Reputation: 1009
How can I have my main application open a separate application and have it call an event in the main application when the separate application closes?
At the moment I am using:
Process.Start("notepad.exe", "C:\test.txt");
What I attempt to achieve is to get the main application to re-read the contents of test.txt once the separate application has saved and closed.
Upvotes: 0
Views: 44
Reputation: 20806
Dim Process As Process = new Process()
Process.StartInfo = new ProcessStartInfo("notepad", "C:\test.txt")
Process.Start()
Process.WaitForExit()
// Do something
Upvotes: 1