bug in HScrollBar control object
-
I setup an HScrollBar as part of a panel. Let's call this ScrollBar MyScrollBar. Now to the problem: When a user scrolls (dragging the slider) the maximum value that can be reached is not the MyScrollBar.Maximum value but the value (MyScrollBar.Maximum - 9). This occured for any MyScrollBar.Maximum value I specified. Anyone having this bug, too? Anyone know, how to fix this? Greetings
-
I setup an HScrollBar as part of a panel. Let's call this ScrollBar MyScrollBar. Now to the problem: When a user scrolls (dragging the slider) the maximum value that can be reached is not the MyScrollBar.Maximum value but the value (MyScrollBar.Maximum - 9). This occured for any MyScrollBar.Maximum value I specified. Anyone having this bug, too? Anyone know, how to fix this? Greetings
This is quoted from MSDN: The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached is equal to the Maximum property value minus the LargeChange property value plus 1. The maximum value can only be reached programmatically. So in your case LargeChange=10. You could get round this by adding LargeChange to Maximum; -- modified at 16:12 Sunday 25th June, 2006
-
This is quoted from MSDN: The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached is equal to the Maximum property value minus the LargeChange property value plus 1. The maximum value can only be reached programmatically. So in your case LargeChange=10. You could get round this by adding LargeChange to Maximum; -- modified at 16:12 Sunday 25th June, 2006