|
-
Mar 26th, 2001, 04:21 AM
#1
Thread Starter
New Member
Hello to all, I would like to known if there is any event that happens when windows shutdown.
I want to make a resident application that detects when windows shutdown, and, when this occurs, make several things.
-
Mar 26th, 2001, 07:17 AM
#2
When Windows shuts down, it will close your application. You can detect this in the QueryUnload event.
Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbAppWindows Then Msgbox "Windows is shutting down"
End Sub
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
|