You are surely talking about the MDIChildren collection (instead of the MDIList property)!
In VB.Net, we can use this code:
Dim frmChild As Form
For Each frmChild In Me.MdiChildren
frmChild.Close()
Next
>I'm sure this is an easy one for everybody but me...
>
>I have an MDI parent form that allows the user to launch multiple MDI children forms.
>
>I know that I can access the list of opened forms/windows by examining the MDILIST property...what I'd like to do is have a 'close all' option, where I read the contents of MDILIST and then close each form that's currently open.
>
>Problem is, I'm not sure of the syntax to do this in C#...it's basically
> -name of form-.CLOSE(), but again, I'm not quite sure. Anybody tried this?
>
>Thanks,
>Kevin
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com