I have a vertical scrollbar (VScrollBar) that I declare like below:
VScrollBar sb = new VScrollBar();
sb.Minimum = 0;
sb.Maximum = 200;
sb.SmallChange = 1;
sb.Value = 0;
Now, when I use the scroll arrows or move the slider the highest I can ever get the value is always the maximum minus 9, even when the slider has reached the bottom of the scrollbar. The odd behavior continues even when I change the maximum either higher or lower.
I trap the Scroll event and check the ScrollEventArgs e.Value, it will never reach any higher than the Maximum minus 9. I *could* offset the maximum by 9 but I think that's pretty lame and would like to find out what's causing this behavior.
VScrollBar sb = new VScrollBar();
sb.Minimum = 0;
sb.Maximum = 200;
sb.SmallChange = 1;
sb.Value = 0;
Now, when I use the scroll arrows or move the slider the highest I can ever get the value is always the maximum minus 9, even when the slider has reached the bottom of the scrollbar. The odd behavior continues even when I change the maximum either higher or lower.
I trap the Scroll event and check the ScrollEventArgs e.Value, it will never reach any higher than the Maximum minus 9. I *could* offset the maximum by 9 but I think that's pretty lame and would like to find out what's causing this behavior.