Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax question on MDILIST
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00838683
Message ID:
00838751
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform