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:
00899931
Vues:
13
Thank you, Bonnie.
I suspected so, but was confused by the fact that I can call controls directly w/o intermediate containers, this.mycontrol.

Slava

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform