How to refresh system tray when application closes?

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top