Results 1 to 5 of 5

Thread: Check if application is quitting

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    9

    Check if application is quitting

    Hi.
    Does anyone know how to check if the application object is closing down. I want to show a conform message before application is closed.
    It should be possible with some api-calls.

    If its not possible to check its state i wonder if its possible to stop the application from closing down in the unload event of a form.

    Regards Staffan

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    You mean your application?

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    9
    The problem is to catch when the user press the close button in my Microsoft Access application. Is there any way to check if the user has clicked the close button?

    I just want the user to be able to cancel before the application quit.

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You can set Cancel = True in the Unload event.
    You can also do this in the QueryUnload event where you can also check why the application is closing by checking the UnloadMode argument.

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    9
    Thanks, that was exactly what i needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width