I have a panel with many child controls and with Autoscroll
enabled. Clicking the arrow at the top or bottom of the scrollbar results in a tiny movement of a few pixels only:
Can the amount of movement be controlled and set to a much larger value? Using the .NET Compact Framework.
EDIT 1
In the full version of .NET, the VerticalScroll.SmallChange
and VerticalScroll.LargeChange
properties can be accessed directly. But these are not available in the Compact Framework. So the question is how to do this in the Compact Framework?
EDIT 2
By viewing the panel's AutoScrollPosition.Y
, I've discovered that the SmallChange
parameter is set to 5 pixels. This must be the default for Panel
controls in the Compact Framework. For my touchscreen application, this needs to be something like 70 pixels.
After much research I've come to the conclusion that this is simply not possible in the Compact Framework. This answer is not for the specific question but an excellent workaround adapted from this answer by Cyril Gupta
Up
and Down
buttons on this area.AutoScroll
on the child panel.Top
property of the child.Works nicely!