Detecting application quit 
Author Message
 Detecting application quit

I would like to add code to my main forms that when a users closes them by
clicking the close button at the top right of the form, that they actually
hide, so it will be quicker to display them subsequently. Easy - global
variable - if not globalQuit then cancel event and hide. However, I need to
set the global quit as the application is closed. Is there anyway to detect
this?
Simon



Sat, 28 Oct 2000 03:00:00 GMT  
 Detecting application quit

Hi Simon,

Unfortunately, not directly.  The most you can do is to have a hidden form
open as the first form, and use it's UnLoad event.

HTH

--
Dev Ashish (Just my $.001)
---------------
The Access Web ( http://home.att.net/~dashish )
---------------

:I would like to add code to my main forms that when a users closes them by
:clicking the close button at the top right of the form, that they actually
:hide, so it will be quicker to display them subsequently. Easy - global
:variable - if not globalQuit then cancel event and hide. However, I need to
:set the global quit as the application is closed. Is there anyway to detect
:this?
:Simon
:
:



Sat, 28 Oct 2000 03:00:00 GMT  
 Detecting application quit

Thanks, Dev. It just so happes I have an initial form which I can leave
hidden...

Quote:

>Hi Simon,

>Unfortunately, not directly.  The most you can do is to have a hidden form
>open as the first form, and use it's UnLoad event.
>Dev Ashish (Just my $.001)
>---------------
>The Access Web ( http://home.att.net/~dashish )

> Is there anyway to detect
>:this?
>:Simon



Sun, 29 Oct 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Detecting Print Jobs when quitting Word

2. Resetting original system colors on quitting application

3. Disable Application Quit ("X") Button

4. Auto Quit Application after No Activity

5. Newbie Application.Quit Question

6. Acc97: Application.Quit hangs task

7. Application.Quit statement resets Variables?

8. Access 97 - Application.Quit does not work if msgbox is displayed

9. objWord.Application.Quit crashes Word97

10. Repost -- ACC97: GPF on Application.Quit

11. ACC97: GPF on Application.Quit (and shutdown problem)...

12. Quitting Application won't close Access 7.0

 

 
Powered by phpBB® Forum Software