|
-
Jan 20th, 2000, 02:22 AM
#1
Thread Starter
Hyperactive Member
what event is triggered when you click the little X in the upper right corner?
------------------
I am so skeptacle, I can hardly believe it!
-
Jan 20th, 2000, 02:23 AM
#2
These Events:
- QueryUnload
- Unload
- Terminate
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 20th, 2000, 02:28 AM
#3
Thread Starter
Hyperactive Member
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!
-
Jan 20th, 2000, 02:33 AM
#4
Thread Starter
Hyperactive Member
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!
-
Jan 20th, 2000, 03:23 AM
#5
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
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
|