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!

VB6 SETFOCUS = ? in VB.NET 1

Status
Not open for further replies.

proteome

Technical User
May 14, 2003
115
US
How do youo set the focus of a tabpage in vb.net in vb 6 you could set the focus of a tabstrip by using blah.SetFocus(), which in turn would immediately change to the blah tab. I cannot figure out how to do the same thing in vb.net

Any help would be greatly appreciated!!

 
I have tried that but the for with the tab page does not do anything.
 
I have tried that but the form with the tab page does not do anything.
 
Are you trying to set focus on to a specific tabpage? if so

Code:
tab_Main.SelectedTab = TabPage1

should do the trick.

-Kris
 
Thanks Kris11 that done the trick!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top