VB遍歷已打開(kāi)的MDI子窗體

字號(hào):

VB 遍歷已打開(kāi)的MDI子窗體的實(shí)現(xiàn)代碼,考試大讓大家參考一下!
    Private Sub new_Click()
    For Each mdifrm In VB.Forms
    If mdifrm.Caption <> Me.Caption Then
    Unload mdifrm
    End If
    Next
    End Sub