Trapping Application Exit

G

Guest

Hi.

When my database closes, the Title form should open and log the user out of
the database. This is done by adding the code to the Unload Event on my main
form.

If the user clicks the Application exit button, the title form closes before
running its Timer events, which are used to log the user out.

Is there any way of disabling or 'cancelling' the Quit action when the
Application exit button is clicked?

Cheers,
Steve.
 
G

Guest

That was'nt quite what I required. I didnt mention but there are several
passes through the form so calling the timer event would not of worked.

I found this article on knowledge base about disabling the application exit
button. This forces the user into clicking the form close button instead.
http://support.microsoft.com/kb/300688/en-us

Thanks for the help,
Steve.
 

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