Re: Notification of WIndows Shutdown.
- From: "Mike Williams" <mike@xxxxxxxxxxxxxxxxx>
- Date: Fri, 4 Jan 2008 21:09:43 -0000
"PeterD" <peter2@xxxxxxxxxx> wrote in message news:4o6tn3lfkgo2sl3je478hug3ka9a7aqsod@xxxxxxxxxx
Any easy VB6 way to trap a Windows shutdown? I tried the
unload functions for the form, but they don't reflect (or my test
didn't show it) that it was a Windows shutdown and not an
application derived shutdown.
Have you tried checking the UnloadMode parameter in the Form's QueryUnload event? Here are the values:
0 The user chose the Close command from the Control menu on the form.
1 The Unload statement is invoked from code.
2 The current Microsoft Windows operating environment session is ending.
3 The Microsoft Windows Task Manager is closing the application.
4 An MDI child form is closing because the MDI form is closing.
5 A form is closing because its owner is closing.
Mike
.
- Follow-Ups:
- Re: Notification of WIndows Shutdown.
- From: PeterD
- Re: Notification of WIndows Shutdown.
- From: Bob Butler
- Re: Notification of WIndows Shutdown.
- References:
- Notification of WIndows Shutdown.
- From: PeterD
- Notification of WIndows Shutdown.
- Prev by Date: Notification of WIndows Shutdown.
- Next by Date: Re: Notification of WIndows Shutdown.
- Previous by thread: Notification of WIndows Shutdown.
- Next by thread: Re: Notification of WIndows Shutdown.
- Index(es):
Relevant Pages
|