Tab Control

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
 
H

Herfried K. Wagner [MVP]

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.
 
M

Mick Doherty

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top