D
Dave Townsend
I am trying to write an application that starts with windows and sits in
the systray, only showing a form when the user clicks the systray icon.
I have got it working almost perfectly. The systray icon shows up, right
clicking it and selecting exit exits the application.
My problem is that when I shutdown windows while the application is
running it just stops. The Application.ApplicationExit event is never
raised. I have some settings that need to be persisted and resources
freed when the application exits so somehow I need to detect when
windows is closing my application and respond accordingly.
Is there any sensible way to do this in .NET?
Dave
the systray, only showing a form when the user clicks the systray icon.
I have got it working almost perfectly. The systray icon shows up, right
clicking it and selecting exit exits the application.
My problem is that when I shutdown windows while the application is
running it just stops. The Application.ApplicationExit event is never
raised. I have some settings that need to be persisted and resources
freed when the application exits so somehow I need to detect when
windows is closing my application and respond accordingly.
Is there any sensible way to do this in .NET?
Dave