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
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top