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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Giving focus to a Tab Page via a Command button 2

Status
Not open for further replies.

rundmc

Programmer
Jan 16, 2003
15
US
Hi

Is there any way you can use a command button to cause the current TabPage to switch focus to the next Tab Page in the sequence?

Thanks in advance
rundmc
 
Code:
Try
            TabControl1.SelectedTab = TabControl1.TabPages(TabControl1.SelectedIndex + 1)
Catch
            TabControl1.SelectedTab = TabControl1.TabPages(0)
End Try
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top