Is it possible to have a textbox ignore Ctrl + character function and reassign a different use for the ctrl key?
Situation: I have multiple text boxes on a Form. Ideally I would like the textboxes to jump from one textbox to another after enter in a single character. However the textbox can have more than one input, in this case I want the user to hold ctrl to stay on the textbox while they enter in multiple characters.
Essentially, I want my ctrl (if held down) to stop the textbox from jumping.
I've tried using a combination of OnKeyDown
, OnKeyUp
and TextChanged
event to handle when the Ctrl key is pressed, but in the end, I can't enter any data once the Ctrl key is held down. Is there a way around this?
The reason for this is because 95 percent of the time its always 1 character. Therefore to quickly traverse through the textboxes, the user would hit a single character. However in the unlikelihood that the user wants to enter in 2 digits, they can hold Ctrl (So it doesn't jump to the next textbox) and enter in 2 digits as desired.