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.
RPRamesh Praveen Syncfusion Team May 13, 2003 07:39 AM
Maybe the Application.ApplicationExit will get called before your Closing event?
ADAdministrator Syncfusion Team May 30, 2003 08:07 AM
This is what I had to do:
public static void ShuttingDown()
StackTrace Trace = new StackTrace(true);
if(Trace.FrameCount > 13)