Results 1 to 5 of 5

Thread: what event?

  1. #1

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    what event is triggered when you click the little X in the upper right corner?

    ------------------
    I am so skeptacle, I can hardly believe it!

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    These Events:
    • QueryUnload
    • Unload
    • Terminate



    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  3. #3

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    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!

  4. #4

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    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!

  5. #5
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    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
  •  



Click Here to Expand Forum to Full Width