Your post about Setting a Form to Be Invisible at Its Inception was very helpful to me although it lacked the answer to that question.
I have a program that can only be closed using the notify icon in the taskbar. The closed event is cancelled.
I need to use application.exit() there but only when windows is trying to close the app to restart the computer.
Maybe the Application.ApplicationExit will get called before your Closing event?
AdministratorMay 30, 2003 01:07 PM UTC
This is what I had to do:
public static void ShuttingDown()
StackTrace Trace = new StackTrace(true);
if(Trace.FrameCount > 13)