|
I have a C#2.0 winforms app with a HScrollBar on a form. The Min is -4096, max is 4096 small increment 1, big increment is 200 (it seemed fine with the increments were 1 and 10, but I was trying to make the thumb bigger) I position my scrollbar at the max, I click on the down arrow and the value changes to 4095. I click on the up arrow (expecting the slider to go back to 4096 and get scroll event args with: Type = ScrollEventType.SmallIncrement OldValue = 4095 NewValue = 3996 So where is this coming from? Is there some other scroll property I need to set - or do I need to do my own math? Even if there is some rounding error, if it is an increment but the value is going down, shouldn't that flag an exception or throw an assertion in Microsoft control code?
|