By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,885 Members | 1,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,885 IT Pros & Developers. It's quick & easy.

How to refresh system tray when application closes?

P: n/a
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?
Aug 21 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Engineerik wrote:
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?

Aug 21 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.