How to refresh system tray when application closes?

G

Guest

I have an application which uses a notification icon in the system tray.
When the application is closed the notification icon remains in the system
tray until I hover over it with the mouse. How can I refresh the system tray
to remove the notify icon when the app closes?
 
S

Steve

You need to add code to the Form_Closing event to cleanup the icon
before the app closes. Try using this:

NotifyIcon1.Visible = False



Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 

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