Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Winform on exit run method

public Form1{
  //some code...
  AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit);

}
public void OnProcessExit(object sender,EventArgs e){
   MyDataLoggerMethod("Monitoring ended.");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Winform #exit #run #method
ADD COMMENT
Topic
Name
8+2 =