Stopping a form from closing in its Closing hander

  • Thread starter Thread starter Tom Jones
  • Start date Start date
T

Tom Jones

There are cases where my Form receives its closing notification and I need
to keep it from closing.

How can I do this?
Thanks,
TJ
 
Set the Cancel property of the CancelEventArgs object to True.

Tom Dacon
Dacon Software Consulting
 
* "Tom Jones said:
There are cases where my Form receives its closing notification and I need
to keep it from closing.

\\\
If...Then
e.Cancel = True
Else
...
End If
///
 
Back
Top