Capture application close event

T

Tom Grillot

Is there some way I can capture the application close event (like when the
user clicks the application close button "X") so that I can run some
housekeeping before it closes all the way?

Thanks,
Tom
 
D

Dirk Goldgar

in message
Is there some way I can capture the application close event (like
when the user clicks the application close button "X") so that I can
run some housekeeping before it closes all the way?

There's nothing built-in. The usual method is to have a hidden form
that is always open, and use that form's Close or Unload event to do
your housekeeping.
 

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