Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where are this.Controls?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00899900
Message ID:
00899925
Vues:
15
Slava,

You need to do this recursively for all ContainerControls, since TabControl is a container that contains other controls.

~~Bonnie

>I want to go through all controls on my form. I did it before for a form based on the mmBusinessForm class without a problem. Now I am doing the same for a form based on the mmMaintenanceForm class. The
foreach (Control ctrl in this.Controls) {}
statement finds just one, TabControl control.
>I checked the CustomerOrderForm in the MM Northwind sample.
MessageBox.Show(this.Controls.Count.ToString());
shows just 1. What am I missing?
>
>Thanks
>
>Slava
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform