Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference fields on a TabControl's page
Message
From
26/11/2003 15:46:23
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00851571
Message ID:
00853856
Views:
12
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform