how do I use tab control on vb2008
Posted on 2009-12-16
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?