Question about WinForms TrackBar control in .Net
Posted
by Jules
on Stack Overflow
See other posts from Stack Overflow
or by Jules
Published on 2010-04-07T09:52:50Z
Indexed on
2010/04/07
10:03 UTC
Read the original article
Hit count: 444
Does anyone know the millisecond interval, used by the framework trackbar, between calling the ValueChanged event when moving the grip with a mouse?
I've implemented my own trackbar and I'd like the behaviour to be consistent with what the user expects.
I've had a look in reflector but it's one of those controls where most of the implementation is not viewable.
ETA: Actually, thinking about it, it's not as simple as that. For small changes, the TrackBar is raising the event for every change. However, if you make a large fast change with the grip, it will not raise the event for every step. Just wondering exactly how the framework does this?
Thanks
© Stack Overflow or respective owner