Tab Control

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
 
R

Rick Brandt

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

Rick Brandt

The expression in previous post should be...

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

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