Results 1 to 3 of 3

Thread: Closing a Form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    Is there a way to know if the a form was closed
    using the CLOSE Command on the Control Menu and
    not with the UNLOAD statement?
    icq: 16228887

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    I'm not sure if this is what you mean, but...

    Code:
    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    If UnloadMode = vbAppTaskManager Then
        'Closed with Task Manager
    ElseIf UnloadMode = vbFormControlMenu Then
        'Closed with control Menu
    ElseIf UnloadMode = vbFormCode Then
        'Closed with code
    ElseIf UnloadMode = vbAppWindows Then
        'Windows is closing down
    ElseIf UnloadMode = vbFormOwner Then
        'Owner window closed it
    End If
    End Sub
    Courgettes.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    yup bro. this is what i want.
    i owe u bro. thanks!

    - rod
    icq: 16228887

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