N
Nicholas Paldino [.NET/C# MVP]
Todd,
What I would do is in the VB6 app, call RegisterWindowsMessage, creating
a custom message for your partiular app's shutdown. You would also call
this in the .NET apps.
Then, when your VB6 app shuts down, you can call SendMessage (through
the API), passing HWND_BROADCAST as your window handle (you can get the
value from WinUser.h). Then, you override the WndProc method on your main
form in your .NET applications. When the message is the value returned from
RegisterWindowMessage, call Close on yourself, and your app will shut down.
Hope this helps.
What I would do is in the VB6 app, call RegisterWindowsMessage, creating
a custom message for your partiular app's shutdown. You would also call
this in the .NET apps.
Then, when your VB6 app shuts down, you can call SendMessage (through
the API), passing HWND_BROADCAST as your window handle (you can get the
value from WinUser.h). Then, you override the WndProc method on your main
form in your .NET applications. When the message is the value returned from
RegisterWindowMessage, call Close on yourself, and your app will shut down.
Hope this helps.