RIAS
asked on
navigate through tabpages by arrow keys
Hello,
How can I navigate between tabpages by arrow keys; (Left and Right).
I am using vb.net 2015 desktop.
Cheers
How can I navigate between tabpages by arrow keys; (Left and Right).
I am using vb.net 2015 desktop.
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If the focus is already on the tab, arrows are already correctly navigating to the next/previous tab.
Trying to handle the PreviewKeyDown or KeyDown event will likely conflict with other controls: e.g. Moving the cursor left/right in a TextBox.
If all the controls are read-only, then this won't be much of an issue. But if people are allowed to alter the data, then intercepting the arrow keys will interfere with standard navigation.
Instead, maybe you can just teach your users to use CTRL-TAB and CTRL-SHIFT-TAB which are the standard navigation keys for tabcontrols.
Trying to handle the PreviewKeyDown or KeyDown event will likely conflict with other controls: e.g. Moving the cursor left/right in a TextBox.
If all the controls are read-only, then this won't be much of an issue. But if people are allowed to alter the data, then intercepting the arrow keys will interfere with standard navigation.
Instead, maybe you can just teach your users to use CTRL-TAB and CTRL-SHIFT-TAB which are the standard navigation keys for tabcontrols.
ASKER
Eric Spot on!! Thanks
ASKER