Method SetScrollBar
SetScrollBar(Control, bool, int, int, bool)
Sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
public static void SetScrollBar(Control control, bool flat, int size, int pageSize, bool isVertical)
Parameters
controlControlA scroll bar control or a window with a standard scroll bar.
flatboolIndicates whether scroll bar is flat.
sizeintSpecifies the maximum scrolling position.
pageSizeintSpecifies the page size.
isVerticalboolIndicates whether scroll bar is vertical or horizontal.
SetScrollBar(AbstractControl, bool, int, int, bool)
public static void SetScrollBar(AbstractControl control, bool flat, int size, int pageSize, bool isVertical)
Parameters
controlAbstractControlflatboolsizeintpageSizeintisVerticalbool