G
Guest
I want to create two executable applications, AppA and AppB. AppA uses an
instance of the Process class to launch AppB, via the Process.Start() method.
AppB has a WndProc but does not display a window.
Later, AppA sends a message to AppB telling it to shut down. AppB includes
an event handler that handles this and closes down gracefully.
I have no trouble doing this if AppB can show a visible window since I can
use Process. CloseMainWindow() in AppA to send the message, and the
Form.Closing event in AppB to receive the message. But has soon as I hide the
window, this doesn’t work.
In Win32 this would be easy, but how do you do it in Dot Net?
instance of the Process class to launch AppB, via the Process.Start() method.
AppB has a WndProc but does not display a window.
Later, AppA sends a message to AppB telling it to shut down. AppB includes
an event handler that handles this and closes down gracefully.
I have no trouble doing this if AppB can show a visible window since I can
use Process. CloseMainWindow() in AppA to send the message, and the
Form.Closing event in AppB to receive the message. But has soon as I hide the
window, this doesn’t work.
In Win32 this would be easy, but how do you do it in Dot Net?