D
deciacco
I have a NotifyIcon application. (c# 2) I want to be able to catch a
kill/shutdown attempt so that I can call Dispose() to remove the icon. I
tried to create an event handler for ApplicationExit and put my icon
dispose call in there, but when process.kill() is called from an outside
app on the notifyicon app, the event doesn't get raised. the app closes
but the icon remains in the tray as dispose was never called.
any ideas?
another way of telling the notifyicon class that it needs to close?
Thanks.
kill/shutdown attempt so that I can call Dispose() to remove the icon. I
tried to create an event handler for ApplicationExit and put my icon
dispose call in there, but when process.kill() is called from an outside
app on the notifyicon app, the event doesn't get raised. the app closes
but the icon remains in the tray as dispose was never called.
any ideas?
another way of telling the notifyicon class that it needs to close?
Thanks.