Don't trap form closing event when computer shutting down
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?
Windows 7 64, 32 & Win XP 32