The users can press Ctrl+Tab (or Ctrl+Shift+Tab ) to navigate through the tab pages of a tab control. I'm wondering, is there a way to disable this? or not to let the tab control receive the key combination?
Printable View
The users can press Ctrl+Tab (or Ctrl+Shift+Tab ) to navigate through the tab pages of a tab control. I'm wondering, is there a way to disable this? or not to let the tab control receive the key combination?
just to let you know, I've tried this, aint working:
VB Code:
Private Sub tabWizard_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles tabWizard.KeyDown If e.Control AndAlso e.KeyCode = Keys.Tab Then If e.Shift Then e.Handled = False Else e.Handled = False End If End If End Sub
Hi Mr. Polite.
I downloaded this example from PSC, so no credit to me ;)
But it still works...:D
hey thanks:)
I thought there should be a better way, but oh well seems like your way is the only way....
and, I think you should be credited because I never thought of disabling the hotkey in windows... I was just thinking of trapping the keys using keypress and such:D