Results 1 to 2 of 2

Thread: Event Shutdown

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    2

    Exclamation

    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.

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width