Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where are this.Controls?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00899900
Message ID:
00899931
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform