Detect a form closing from the Close button

D

Donald Sy

How can I tell if a form was closed by clicking the 'X' in the control box
( the X in the upper right hand corner of the form)? In Visual Basic you
can use the query_unload event.
 
S

Steve Schapel

Donald,

The form has a Close event. I guess the specific answer to your
question would depend upon what other ways you envisage that the form
might be closed, and what you want to do based on the distinction of
which method is used to close the form.
 

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

Top