
04-01-2004, 07:17 AM
|
|
Newcomer
|
|
Join Date: Jul 2003
Posts: 16
|
|
MDI Form - Unload All Children
|
I am having a bit of trouble getting used to .NET MDI forms. In VB6 you used to be able to do this:
Code:
Dim frm As Form
For Each frm In Forms
If frm.Name <> mdiName Then
If frm.MDIChild = True Then
Unload(frm)
End If
End If
frm = Nothing
Next
Which looped through all the open forms and shut them except the MDI form.
How do I replicate this in .NET, I can't get to grips with the Forms class and how to loop through it.
Thanks for your help.
|
|