VB - Terminating Systray Application On Shutdown does not work (it does not exit

  • Thread starter Thread starter Erik Greene
  • Start date Start date
E

Erik Greene

I have written an application that contains a notifyicon
that will not dispose or end when Windows shutsdown.

I have seen other posts where people are experiencing the
same issue (see post in the csharp group), so I know that
this is an issues for others as well.

Does anyone know how to capture the Windows Exit/Shutdown
event?

Any help would be greatly appreciated.

Thanks,
Erik
 
Erik Greene said:
I have written an application that contains a notifyicon
that will not dispose or end when Windows shutsdown.

Ah, you can see it after Windows has shut down?
 
If you are talking about the System Tray Icon not disposing ie. The icon
still stays after the app is gone,
Thats a problem with windows. (I hope I understood your Q correctly though).

Take any app with a systray icon, end-task it, the icon stays .... until you
take your mouse over it.
Usually what I do is, I capture the handle to the systray, (FindWindow), and
then I invalidaterect it ... that gets rid of the icon on exit .. rest
assured, the resources by then are released (even though the tray didn't
repaint itself).

Again, I might not have understood ur Q correctly.
 
Back
Top