what event is triggered when you click the little X in the upper right corner?
------------------
I am so skeptacle, I can hardly believe it!
Printable View
what event is triggered when you click the little X in the upper right corner?
------------------
I am so skeptacle, I can hardly believe it!
These Events:
- QueryUnload
- Unload
- Terminate
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
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!
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!
I recommend the Query_Unload event.
Code:Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbFormControlMenu Then
MsgBox "Hi"
End If
End Sub