|
-
Jan 28th, 2000, 03:07 AM
#1
Thread Starter
Frenzied Member
How can i detect if the 'X' (Close button) in the right corner of the window have been clicked on??
------------------
Yours sincierly
CyberCarsten
http://home18.inet.tele.dk/cyber/
[email protected]
-
Jan 28th, 2000, 03:27 AM
#2
Hyperactive Member
Use the unload event of the form. For example, if you didn't want the form to close when that X was pressed:
-----------
Private Sub Form_Unload(Cancel As Integer)
Cancel = True
End Sub
-----------
-
Jan 28th, 2000, 05:30 AM
#3
The check should be done in the QueryUnload event rather than the Unload event. See my answer to a previous question.
------------------
Marty
COGITO EGGO SUM
I think; therefore I am a waffle.
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
|