Trapping Application Exit

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