pro_vb thread: HOW DO I DETECT THAT THE USER CLICKED THE TOP RIGHT WINDOW "X" CLOSE BUTTON?
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
MsgBox "You are about to close this form"
End Sub
thanks
that is all for now...Mike
(FDCO x2747)
-----Original Message-----
From: Sameer Premji [mailto:spremji@y...]
Sent: Friday, March 16, 2001 2:54 AM
To: professional vb
Subject: [pro_vb] HOW DO I DETECT THAT THE USER CLICKED THE TOP RIGHT WINDOW
"X" CLOSE BUTTON?
Hi,
I want to display a message when a user clicks the X button to close a form.
How do I detect that X has been clicked?
Thanks in advance for your advice,
Sameer.