Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDIFOTMS + close

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
how do I close all child forms?
 
Could u be more specific, are you trying to close all form when exiting the MDIForm or are u trying to close a child form once it has be loaded onto the MDIForm
 
I have a number of child forms loaded an I need to be able to close all of them by clicking a button
 

Code:
    Dim frm As Form
    For Each frm In Forms
        If Not TypeOf frm Is MDIForm Then
            If frm.MDIChild Then
                Unload frm
            End If
        End If
    Next


Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top