troubleshooting Question

how do I use tab control on vb2008

Avatar of GCCal
GCCal asked on
Visual Basic.NET
5 Comments2 Solutions609 ViewsLast Modified:
Have a tab control with 6 tabs.  When I click a button I want  tab index 0 to be displayed.  I have tried tabcontrol.selectedindex =0 and tabcontrol.selectedtab= tabpage1.  In both instances, the tab page is not selected unless it is higher than the current selected tab.  For example, if tab page 0 is visible and I use tabcontrol.selectedindex= 3, tab page is displayed properly.  However, if tab page 3 it displayed, and I use selectedindex = 0 then nothing happens.  It only changes if the new selectedindex is higher than the current selectedidnex.  Anyone have any suggestions?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros