|
-
Nov 12th, 2001, 08:06 AM
#1
Thread Starter
New Member
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
-
Nov 12th, 2001, 08:39 AM
#2
Conquistador
You mean your application?
-
Nov 12th, 2001, 10:08 AM
#3
Thread Starter
New Member
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.
-
Nov 12th, 2001, 10:14 AM
#4
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.
-
Nov 12th, 2001, 10:35 AM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|