0

I have a program that allows the user to add steps to a process (tabpages in a control). All tabpages are generated on the fly by duplicating a "template" tabpage and consequently have the same control names such as textboxStepDesc. Here is the hierarchy of the controls to get to textboxStepDesc. Both TabPage1 and TabPage2 are in TabControl1

TabPage1
Panel1
textboxStepDesc
other fields

TabPage2
Panel1
textboxStepDesc
other fields

Since textboxStepDesc exists in Panel1 in both TabPage1 and TabPage2, how do I specify that I want to retrieve the value of textboxStepDesc.text on tabpage2 vs. textboxStepDesc.text on tabpage1?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
0

Use Controls collection,

TabControl1.TabPages("key or Index").Controls("key or index").Controls("key or index")
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.