Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax question on MDILIST
Message
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00838683
Message ID:
00838751
Views:
23
You are surely talking about the MDIChildren collection (instead of the MDIList property)!

In VB.Net, we can use this code:
        'Close all children forms
        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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform