Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh system tray icons

Status
Not open for further replies.

JunglesMcBeef

Programmer
Sep 18, 2003
266
Hi,

I was wondering if there is a way to refresh the icons in the system tray. If I kill the process, the icon stays in the taskbar until i wave the mouse pointer over it, then it disappears, even though the process has been killed. If I exit through right clicking on the icon in the taskbar it gets rid of the icon and kills the process. So, I effectively need to know if there is a way to refresh the icons in the system tray?
 
You could always capture the application exit and remove the icon from the tray manually.
 
James,

What do I need to reference to be able to use Tray.Dispose()? I can't find any information on it anywhere...
 
I don't think the dspose will be called when you kill the process from within the task manager since all code processing will be stopped. Learn to life with it. but thats just what I think perhaps there is a solution.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top