"Nicolas Poirier" <ni***********@tlb.sympatico.ca> wrote in message
news:Ej********************@news20.bellglobal.com. ..
I successfully made a system tray application.
When I do shut down the computer, how does the computer can instruct my
application to shut down?
For the moment, if I don't quit my application, system asks to kill an
unresponsive task before shut sown.
How does I make shut down run more correctly?
Unless there's something weird going on with your app, it should just
normally upon Windows shutting down. There's something "not right" about
your app that's preventing it from properly closing. Perhaps it has to do
with having added an icon to the system tray. You're not using WM_MOUSEMOVE
as the callback message (which is a hack), are you? Is your main form the
form used to add the icon to the system tray (IOW, the form used to specify
the hwnd of the NOTIFYICONDATA structure)?
You most likely need to post your code on how you're adding an icon to the
system tray as well as your shutdown code. That way, we can see exactly
what you're doing.
--
Mike
Microsoft MVP Visual Basic