00shoe
Member
- Joined
- Oct 12, 2006
- Messages
- 20
- Programming Experience
- 3-5
Hey,
I’m using a form with 3 tabs. All 3 tabs have identical controls and properties on each tab.
And when I want to call a control for any tab I use the following bit of code.
Me.tabcontrol.selectedtab.Controls(0)
However this does not work as for example when I use this code on the first tab it will call a button, and when I use this on the second tab it would call a textbox.
My question: Is it possible to “order” the index of the control on the form.
e.g.
Me.tabcontrol.selectedtab.Controls(0) = Button
Me.tabcontrol.selectedtab.Controls(1) = Textbox
Me.tabcontrol.selectedtab.Controls(2) = Another Textbox
Me.tabcontrol.selectedtab.Controls(3) = Label
Etc…
Thank-you
I’m using a form with 3 tabs. All 3 tabs have identical controls and properties on each tab.
And when I want to call a control for any tab I use the following bit of code.
Me.tabcontrol.selectedtab.Controls(0)
However this does not work as for example when I use this code on the first tab it will call a button, and when I use this on the second tab it would call a textbox.
My question: Is it possible to “order” the index of the control on the form.
e.g.
Me.tabcontrol.selectedtab.Controls(0) = Button
Me.tabcontrol.selectedtab.Controls(1) = Textbox
Me.tabcontrol.selectedtab.Controls(2) = Another Textbox
Me.tabcontrol.selectedtab.Controls(3) = Label
Etc…
Thank-you