Remove system tray icon of a killed process
-
Hi, I have to update a program while it is working. First i stop the process of programme then i copy new files and restart the process of program.At this time i see 2 system tray icon of my programme. When i move mouse over them the killed process's icon removes itself. But i want it to be destroyed when i first kill it's process.Could someone help me plz? --junior coder--
-
Hi, I have to update a program while it is working. First i stop the process of programme then i copy new files and restart the process of program.At this time i see 2 system tray icon of my programme. When i move mouse over them the killed process's icon removes itself. But i want it to be destroyed when i first kill it's process.Could someone help me plz? --junior coder--
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