Tray icon application, events

  • Thread starter Thread starter Zamdrist
  • Start date Start date
Z

Zamdrist

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...windows won't shutdown until
I explicit close my tray icon application, using a context menu event,
Application.Exit.

Thoughts, ideas? Thanks.

Steve
 
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).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 
Back
Top