I want to wait for a process to finish, but Process.WaitForExit() hangs my GUI. Is there an event-based way, or do I need to spawn a thread to block until exit, then delegate the event myself?
I want to wait for a process to finish, but Process.WaitForExit() hangs my GUI.
Share
process.EnableRaisingEvents = true;
process.Exited += [EventHandler]