Tab Control

  • Thread starter Thread starter Gargamil
  • Start date Start date
G

Gargamil

Is it possible to select a given page of a tab control using code?? I want
a given page to open based on the selected contents of a combo box

g
 
Gargamil said:
Is it possible to select a given page of a tab control using code?? I want
a given page to open based on the selected contents of a combo box

Each TabPage has an IndexValue property. Setting the Value of the entire
TabControl to a value matching one of the page's IndexValue causes that page to
be selected.

Me.TabControl,Value = 2

....would cause the third TabPage to be selected.
 
The expression in previous post should be...

Me.TabControl.Value = 2
instead of
Me.TabControl,Value = 2
 
Back
Top