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

How to click on a button and go to a specific tab

Status
Not open for further replies.

Sid244

Technical User
Mar 6, 2005
8
US
I have a simple piece of code and I want to go to Tab1 when I click the "Clear" button. Any suggestions.
 
Just set the SelectedTab to the name of the tab that you want to go to:
Code:
TabControl1.SelectedTab = TabPage1

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top