zipnotic
asked on
Don't trap form closing event when computer shutting down
Hello,
I trap my main form from closing and give the user an options box to remind them that the services of the app will no longer work if they close vs. minimize the application (which goes to the systray). However, when they shut down the computer my application still gives the warning and demands a response before the computer shuts off. Is there a way to ignore the formclosing event IF the computer is closing the app during the shut down process?
VS 2010
.Net
Windows Forms
Windows 7 64, 32 & Win XP 32
Thanks for any thoughts
Zip
I trap my main form from closing and give the user an options box to remind them that the services of the app will no longer work if they close vs. minimize the application (which goes to the systray). However, when they shut down the computer my application still gives the warning and demands a response before the computer shuts off. Is there a way to ignore the formclosing event IF the computer is closing the app during the shut down process?
VS 2010
.Net
Windows Forms
Windows 7 64, 32 & Win XP 32
Thanks for any thoughts
Zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sure.
ASKER