D dani kotlar Jan 17, 2007 #1 Is it possible to suspend the closing of a form from the FormClosing event handler, or any other way? Thanks
Is it possible to suspend the closing of a form from the FormClosing event handler, or any other way? Thanks
M Morten Wennevik [C# MVP] Jan 17, 2007 #2 If by suspend, you mean cancel the closing, then yes. protected override void OnClosing(CancelEventArgs e) { if(someCondition) e.Cancel = true; }
If by suspend, you mean cancel the closing, then yes. protected override void OnClosing(CancelEventArgs e) { if(someCondition) e.Cancel = true; }