Programmatically selecting a Tabpage

  • Thread starter Thread starter King Coffee
  • Start date Start date
K

King Coffee

Hi,

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

King
 
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;
///
 
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;
///
 
Back
Top