Results 1 to 2 of 2

Thread: Intercept close button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Québec City
    Posts
    73
    Hi

    How do I intercept when the user click the X button in my app so I can ask the user if he really wants to quit?

    And what about intercepting the minimize button?

    thanks

    Krushstone

  2. #2
    Guest
    Code:
    Private Sub Form_Unload(Cancel As Integer)
        If MsgBox("Are you sure you want to quit?", vbYesNo, "MyApp") = vbNo Then Cancel = True
    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