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

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  07 July 2012
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 .
 
  07 July 2012
Originally Posted by easyfrog: 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 .


look at NumericUpDown.Accelerations Property
http://msdn.microsoft.com/en-us/lib...erations.a spx
 
  07 July 2012
Is this what you are after?

http://www.penproductions.ca/tutori...mericUpDown.htm
__________________
Paul Neale
http://paulneale.com
 
  07 July 2012
Originally Posted by easyfrog: 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 .

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.
 
  07 July 2012
Yes it is.

Originally Posted by PEN: Is this what you are after?

http://www.penproductions.ca/tutori...mericUpDown.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...
 
  07 July 2012
Originally Posted by easyfrog: 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...

use NumericUpDown GotFocus/LostFocus events to set enableAccelerators to OFF/ON
 
  07 July 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:53 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.