VB 遍歷已打開的MDI子窗體的實現(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
Private Sub new_Click()
For Each mdifrm In VB.Forms
If mdifrm.Caption <> Me.Caption Then
Unload mdifrm
End If
Next
End Sub