Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# windows forms cancel event

 private void form1_FormClosing(object sender, FormClosingEventArgs e)
 {
    MessageBox.Show("Form Closing...");
    e.Cancel = true;
    MessageBox.Show("Form Closing Canceled.");
}
 
PREVIOUS NEXT
Tagged: #windows #forms #cancel #event
ADD COMMENT
Topic
Name
9+1 =