Programmatically selecting a Tabpage

K

King Coffee

Hi,

Do anybody know how can I programmatically select a Tabpage within a
tabcontrol ?

King
 
T

Tom Spink

King said:
Hi,

Do anybody know how can I programmatically select a Tabpage within a
tabcontrol ?

King

Hello King,

If you look at the properties for the TabControl, there is one called,
'SelectedTab'.

Set this to the instance of the tab page you want displayed:

///
tabControl1.SelectedTab = tabPage1;
///
 
K

King Coffee

Thank you !!!

King

Tom Spink said:
Hello King,

If you look at the properties for the TabControl, there is one called,
'SelectedTab'.

Set this to the instance of the tab page you want displayed:

///
tabControl1.SelectedTab = tabPage1;
///
 

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