Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference fields on a TabControl's page
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00851571
Message ID:
00853917
Views:
19
Bonnie,

Good point about UserControls. I think of them as part of another class and imported into the current form.

>Rick,
>
>>>If I understand correctly, that implies that if you place controls inside of containers, they still need unique names.<
>
>Well, not exactly ... it depends on your container I suppose. If you're using a GroupBox, for example, and you've simply dropped a GroupBox on your Form, and then dropped controls inside that GroupBox, then those controls are exposed at the Form level, so they would need to be unique names. But, if your container is a UserControl, then the controls in that UserControl are *not* exposed to the Form and are only accessible via the UserControl's properties.
>
>~~Bonnie
>
>>Cathy,
>>Thank you.
>>Sorry for the delayed response.
>>I was surprised by how VB does that...
>>If I understand correctly, all the controls on a form can be referenced by
>>Me.Control_Name
>>
>>If I understand correctly, that implies that if you place controls inside of containers, they still need unique names.
>>
>>My background is in VFP and in VFP the controls can be accessed in a tree fashion...
>>Form1 contains Button1, Container1, and Container2
>>Container1 contains Button1
>>Container2 contains Button1
>>to access them from the form level you would say
>>Button1 - for the control not in Container1 or Container2
>>Container1.Button1 - for the control in Container1
>>Container2.Button1 - for the control in Container2
>>
>>Thank you...not it's time to move on to the next puzzle...
>>Rick
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform