C
Coder
Hi,
Is there a way to cancel a keydown even from within the keydown event? In
eVB i can cancel the event or change the keycode in the event to 0 but in VB
..NET the keycode and keyvalue are read only. I use the textbox and form
keydown event to trap keys for the mouse pad (joypad). However, I DON'T want
the caret in the textbox to move up, down, left or right. I want to use the
mouse pad keys for other things. I also must keep focus on the textbox so
that selected text doesn't disappear as it does when the textbox loses
focus.
Any ideas?
Is there a way to cancel a keydown even from within the keydown event? In
eVB i can cancel the event or change the keycode in the event to 0 but in VB
..NET the keycode and keyvalue are read only. I use the textbox and form
keydown event to trap keys for the mouse pad (joypad). However, I DON'T want
the caret in the textbox to move up, down, left or right. I want to use the
mouse pad keys for other things. I also must keep focus on the textbox so
that selected text doesn't disappear as it does when the textbox loses
focus.
Any ideas?