Your technology certification is waiting. Enroll in Cloud Class ®
TabControl1.SelectedIndex = TabControl1.TabPages.IndexOf(TabControl1.TabPages("tabPage2"))
Open in new window
tabControl1.SelectedIndex = tabControl1.TabPages.IndexOf(tabControl1.TabPages["tabPage2"]);
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
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.