Tab Control

  • Thread starter Thread starter Newbie Coder
  • Start date Start date
N

Newbie Coder

Hiya All

I have a tab Control with 5 tabs (index 0 - 4)

I have disabled tabs 1-4 & just left 0 enabled. How do I click on something
like a button on tab 0 which then brings tab1 into view/focused?

Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
but I also need it to select tab 1

I am using VB.NET 2003

TIA
 
Newbie Coder said:
I have a tab Control with 5 tabs (index 0 - 4)

I have disabled tabs 1-4 & just left 0 enabled. How do I click on
something
like a button on tab 0 which then brings tab1 into view/focused?

Check out the control's 'SelectedIndex'/'SelectedTab' properties.
 
How did you try to implement Herfried's suggestion?

....to select the TabPage at Index 1 assuming your TabControl is named
TabControl1:

TabControl1.SelectedIndex = 1
 
Back
Top