NumericUpDown KeyUp Enter Pressed solution

NumericUpDown KeyUp Enter Pressed solution

paulneale
Advisor Advisor
446 Views
0 Replies
Message 1 of 1

NumericUpDown KeyUp Enter Pressed solution

paulneale
Advisor
Advisor

So there has been an on going issue trying to detect when the Enter key is pressed when using a NumericUpDown control. The key events don't catch when Enter is pressed. There are some long winded solutions to this but I wanted something simpler.

 

Turns out I found a solution. I added a keyUp event to the parent control. There is nothing in the function for it however. Once that has been done the NumericUpDown keyUp event catches the Enter key being pressed and only works when the NumbericUpDown has focus.

 

Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes
447 Views
0 Replies
Replies (0)