[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:
look at NumericUpDown.Accelerations Property
http://msdn.microsoft.com/en-us/library/system.windows.forms.numericupdown.accelerations.aspx
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.
Is this what you are after?
http://www.penproductions.ca/tutorials/dotNet/numericUpDown/numericUpDown.htm
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: