Results 1 to 5 of 5

Thread: forcing forms to unload

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    how do you force to unload forms(non-child) from another form.

    - I'm Using VB 6.0 Enterprise Edition
    icq: 16228887

  2. #2
    Guest
    Code:
    Unload form2
    Set form2 = Nothing

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    assuming you don't know the name of the form... can you unload it using the Forms collection?
    icq: 16228887

  4. #4
    Guest
    To unload all forms:

    Code:
    Public Sub UnloadAllForms()
    Dim OfTheseForms As Form
    For Each OfTheseForms In Forms
    Unload OfTheseForms
    Set OfTheseForms = Nothing
    Next OfTheseForms
    End Sub

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    Now this is what I'm looking for!
    Thanks a lot Matthew

    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