RadControls for WinForms

RadHScrollBar and RadVScrollBar share the same properties. The only difference between the two is that the former is displayed horizontally while the latter is displayed vertically.

The most important properties are:

Value

Gets the current value for the thumb position

Minimum

Gets or sets the minimum value of the control when the thumb is at the start

Maximum

Gets or sets the maximum value of the control when the thumb is at the end

SmallChange

Gets or sets the amount that the Value property changes when you click on the arrow buttons

LargeChange

Gets or sets the amount that the Value property changes when you click between the thumb and an arrow

MinThumbLength

Gets or sets the minimum length of the thumb

ThumbLengthProportionGets or sets the amount of the scroll bar that the thumb takes up (between 0 and 1). If set to less than 0, the length is determined automatically
Caution

Don't forget to set the Maximum property to reflect the maximum possible offset upon scrolling. The size of the scrollable height equals the total height of the scrollable content minus the visible height.

Scroll Event

You have to handle the Scroll event to track scrollbar changes. Use the Value property to determine the current thumb position. In general, you have to assign the negated Value to the Top property of the control that is to be scrolled. Please refer to Getting Started section about using this event.