I have an application that launches Notepad. What I want to do is minimize my application, then launch Notepad.exe. After the user closes notepad, I’d like my application to automatically maximize or restore my application window. How can I do this in C#? I’m looking into hooking into the notepad.exe process and trying to detect window close event on notepad. I seem to be way over thinking this though. Is there a simple way to do this?
Share
Just use the Exited event to restore your window. Like this: