closing app when logging off
I have an app that sits in the system tray.
My problem is that when a user logs off when the app is still running, because the app is still running, they can't log off.
Is there a way in my app, to close the app when someone is logging off?
any help would be appreciated.
Re: closing app when logging off
This is probably happening because you set e.Cancel = True always in your Form_Closing event. You need to determine why you are closing (user or system) and if it is the system, let it close gracefully.