Tray icon application, events

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
 
G

G Himangi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top