how do you force to unload forms(non-child) from another form.
- I'm Using VB 6.0 Enterprise Edition
Printable View
how do you force to unload forms(non-child) from another form.
- I'm Using VB 6.0 Enterprise Edition
Code:Unload form2
Set form2 = Nothing
assuming you don't know the name of the form... can you unload it using the Forms collection?
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
Now this is what I'm looking for!
Thanks a lot Matthew :)
rod