Experts Exchange connects you with the people and services you need so you can get back to work.
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
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.