G
Guest
I am trying to capture the windows close event when the operator clicks the
red close icon on the title bar. I need to send a proper exit codeto
scheduler which starts my program.
I have tried
private void WebOrderForm_Closed(object sender, System.EventArgs e){
Application.Exit();
}
private void WebOrderForm_Deactivate(object sender, System.EventArgs e){
Application.Exit();
}
private void WebOrderForm_Closing(object sender,
System.ComponentModel.CancelEventArgs e){
Application.Exit();
}
but nothing seem to work.
red close icon on the title bar. I need to send a proper exit codeto
scheduler which starts my program.
I have tried
private void WebOrderForm_Closed(object sender, System.EventArgs e){
Application.Exit();
}
private void WebOrderForm_Deactivate(object sender, System.EventArgs e){
Application.Exit();
}
private void WebOrderForm_Closing(object sender,
System.ComponentModel.CancelEventArgs e){
Application.Exit();
}
but nothing seem to work.