You can't remove th icon yourself since your application was stopped and/or terminiated by the debugger. There's no way to run any removal code for the icon if your code is no longer running. You just have to put the mouse over the orphaned icon and let it get kicked by the System Tray. No, there's no way to force the System Tray to do this. Even if you could write an app to force the System Tray to clean itself up, wouldn't it just be quicker to pass the mouse over the Tray, instead of finding and double-clicking another icon? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome