Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting tabs on a tabcontrol

Status
Not open for further replies.

jennyek2000

Programmer
Sep 2, 2003
43
GB
I have a tab control and wish to control programmaticly the selecting of a particular tab (i.e. the displaying of a particular tab page)

Does anybody know how to do this.

I tried:

Tabcontrol1.tabindex = 0

but this dosnt work

Thanks,

Jenny
 
OK. Ignore this. Ive figured it out! should have noticed before. It's

TabControl1.SelectedTab = TabControl1.TabPages.Item(0)

Yey.
Thanks anyway,

Jen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top