Catch the WM_ENDSESSION message in your WndProc method and dont set Cancel
to true if you have received this message.
---------
- G Himangi, Sky Software
http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExte nsions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensio ns.Net : Develop all shell extensions,expl orer bars and BHOs
rapidly in .Net
---------
"Zamdrist" <za******@gmail .comwrote in message
news:11******** **************@ a26g2000pre.goo glegroups.com.. .
Trying to get my tray icon application to work as expected. Normally
when you close an opened try icon application it minimizes to the
tray. I have that part working by interrupting the close even in the
Closing event by using e.Cancel = True.
Unfortunately this also seems to interfere with closing the
application when you shut down windows...windo ws won't shutdown until
I explicit close my tray icon application, using a context menu event,
Application.Exi t.
Thoughts, ideas? Thanks.
Steve