Detect a form closing from the Close button

  • Thread starter Thread starter Donald Sy
  • Start date Start date
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.
 
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.
 
Back
Top