Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
tabControl1.SelectedIndex = tabControl1.TabPages.IndexOf(tabControl1.TabPages["tabPage2"]);
Open in new window
TabControl1.SelectedIndex = TabControl1.TabPages.IndexOf(TabControl1.TabPages("tabPage2"))
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
Private Sub FormMain_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
'Implements a way to swicth tabs with the keyboard, since the TabControl
' does not implements shortcut keys
Select Case e.KeyCode
Case Keys.F2 : tacMain.SelectedTab = tabProject
Case Keys.F3 : tacMain.SelectedTab = tabMaterials
Case Keys.F4 : tacMain.SelectedTab = tabInventory
Case Keys.F5 : tacMain.SelectedTab = tabSmallParts
Case Keys.F6 : tacMain.SelectedTab = tabDocumentation
Case Keys.F7 : tacMain.SelectedTab = tabReports
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.