Message 1 of 1
NumericUpDown KeyUp Enter Pressed solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
http://paulneale.com
Paul Neale