Click to See Complete Forum and Search --> : what event?
badgers
Jan 20th, 2000, 01:22 AM
what event is triggered when you click the little X in the upper right corner?
------------------
I am so skeptacle, I can hardly believe it!
Aaron Young
Jan 20th, 2000, 01:23 AM
These Events:
QueryUnload
Unload
Terminate
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
badgers
Jan 20th, 2000, 01:28 AM
when I use F8 to step through the code it doesn't seem to fire the terminate event.
is this just because I am using the IDE?
------------------
I am so skeptacle, I can hardly believe it!
badgers
Jan 20th, 2000, 01:33 AM
here is the scoop.
I put a msgbox "hi" in the terminate event and then made an exe
I still don't get the terminate event when I click the X
I have form1 that has
form1.hide
form2.show
The problem is when you click the X in form2.
Is the fact that form2 wasn't the startup form make a difference?
------------------
I am so skeptacle, I can hardly believe it!
Frans C
Jan 20th, 2000, 02:23 AM
I recommend the Query_Unload event.
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbFormControlMenu Then
MsgBox "Hi"
End If
End Sub
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.