I have written an application that lives in the systray but when I try
to close windows or logout it does not close my application and
therefore prevents windows from shutting down or logging me out. It is
essential that I solve this problem but I have run out of ideas can
anyone help (please!)
The application starts in Start.cs which kicks off the Systray form
using this call:
Application.Run (new Systray());
Systray is a mimized form that is not visible in the TaskBar but has a
NotifyIcon which sits in the systray. Associate with the icon is a
context menu with a Terminate command in it i.e. Application.Exi t();
and that works fine. Presumably windows must send some sort of
terminate message to all running applications and I need to capture
that? Can I use one of the standard events or do I need to use the
windows WndProc?
Any suggestions of where to look would be greatly appreciated.
Regards, Jon
to close windows or logout it does not close my application and
therefore prevents windows from shutting down or logging me out. It is
essential that I solve this problem but I have run out of ideas can
anyone help (please!)
The application starts in Start.cs which kicks off the Systray form
using this call:
Application.Run (new Systray());
Systray is a mimized form that is not visible in the TaskBar but has a
NotifyIcon which sits in the systray. Associate with the icon is a
context menu with a Terminate command in it i.e. Application.Exi t();
and that works fine. Presumably windows must send some sort of
terminate message to all running applications and I need to capture
that? Can I use one of the standard events or do I need to use the
windows WndProc?
Any suggestions of where to look would be greatly appreciated.
Regards, Jon
Comment