How to prevent leaving an Icon in System Tray on exit?

Posted by Malfist on Stack Overflow See other posts from Stack Overflow or by Malfist
Published on 2009-10-26T20:26:59Z Indexed on 2010/03/12 20:17 UTC
Read the original article Hit count: 176

Filed under:
|
|

My program puts an icon in the system tray because the user may minimize to it. However, if the application crashes, or I stop the app from running in VS it leaves the icon in it until I hover over it with the mouse. Sometimes I'll look down there and there will be 10 or so icons.

I can I make sure the icon goes away?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET