What event fired??
-
Hi i developed a windows application, after completion of the processing it has to write the results in to a file. I wrote code for this form_closing event. It is working fine when i closes the application. My problem is If the system is shutting down with out closing the application it is not writing data in to the file. I dont know what event is fired when the application is closed by shutdown. It is very important to store the results into the file. Please Help me. Thanks in Advance. Ramu
-
Hi i developed a windows application, after completion of the processing it has to write the results in to a file. I wrote code for this form_closing event. It is working fine when i closes the application. My problem is If the system is shutting down with out closing the application it is not writing data in to the file. I dont know what event is fired when the application is closed by shutdown. It is very important to store the results into the file. Please Help me. Thanks in Advance. Ramu
-
Hi i developed a windows application, after completion of the processing it has to write the results in to a file. I wrote code for this form_closing event. It is working fine when i closes the application. My problem is If the system is shutting down with out closing the application it is not writing data in to the file. I dont know what event is fired when the application is closed by shutdown. It is very important to store the results into the file. Please Help me. Thanks in Advance. Ramu
-
Here's a small tutorial: Making a Windows Forms App Respond to System Shutdown[^] It looks like it is the answer to your problem.
public object BufferOverFlow { __get { return BufferOverFlow; } __set { BufferOverFlow = value; } }
-
just use the form closing event and use the FormCloseEventArgs object and check if( e.Closereason == CloseReason.WindowsShutDown) hope that is useful for u...
Thanks & Regards, Pramod "Everyone is a genius at least once a year"