If you wrote your own code to display the icon in the systray, then you must explicitly destroy the icon you created by using the parameter 'NIM_DELETE' (&H2) for the Shell_NotifyIcon API. If you're using a control or some dll, then I must say, the author of the program should know better, you can't do much about it since the icon is controled by that app and not you. If you need a Tray control, I have one in my page
www.geocities.com/eclipseds


------------------
Share your knowledge, it is the best way to achieve immortality