Notifications
Clear all

[Closed] How to remove the NumericUpdown's "Pressand hold " event?

How to remove the NumericUpdown’s “Pressand hold ” event?

I use NumericUpdown control to similate the MAX’s spinner. Achieve the Drag up and down to change the value like in MAX . But the “Pressand hold” Event I don’t need. so how to remove it . :argh:

5 Replies
2 Replies
(@denist)
Joined: 10 months ago

Posts: 0
(@denist)
Joined: 10 months ago

Posts: 0

Why do you want to disable the progressive speed of changing the value for .Net NumericUpDown control? I understand the idea to add some functionality but why to remove any good feature?
I add the functionality of changing the value by dragging the mouse, as well as using Control to speed it up, and Alt to slow it down. Also it’s a good idea to use Right Mouse Button during the dragging to set the value to before edit state.
But I leave the original functionality of changing the value using keyboard Up and Down Arrows. I see its cool.

Yes it is very useful. But Now have a Bug … when I use “gc()” to collect the garbage… The NumericUpdown will Couldn’t “type In” manually… :shrug:

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

use NumericUpDown GotFocus/LostFocus events to set enableAccelerators to OFF/ON