--- title: "HScrollBar and VScrollBar Controls Overview" ms.date: "03/30/2017" f1_keywords: - "HScrollBar" - "VScrollBar" helpviewer_keywords: - "ScrollBar control [Windows Forms]" - "HScrollBar control [Windows Forms], about HScrollBar" - "VScrollBar control [Windows Forms], about VScrollBar control" - "ScrollBar control [Windows Forms], about ScrollBar control" - "scroll bars [Windows Forms], about scroll bars" ms.assetid: 8b307679-1cae-41d8-99aa-3d1efd207cd6 --- # HScrollBar and VScrollBar Controls Overview (Windows Forms) Windows Forms controls are used to provide easy navigation through a long list of items or a large amount of information by scrolling either horizontally or vertically within an application or control. Scroll bars are a common element of the Windows interface, so the control is often used with controls that do not derive from the class. Similarly, many developers choose to incorporate the control when authoring their own user controls. The (horizontal) and (vertical) controls operate independently from other controls and have their own set of events, properties, and methods. controls are not the same as the built-in scroll bars that are attached to text boxes, list boxes, combo boxes, or MDI forms (the control has a property to show or hide scroll bars that are attached to the control). The controls use the event to monitor the movement of the scroll box (sometimes referred to as the thumb) along the scroll bar. Using the event provides access to the scroll bar value as it is being dragged. ## Value Property The property (which, by default, is 0) is an `integer` value corresponding to the position of the scroll box in the scroll bar. When the scroll box position is at the minimum value, it moves to the left-most position (for horizontal scroll bars) or the top position (for vertical scroll bars). When the scroll box is at the maximum value, the scroll box moves to the right-most or bottom position. Similarly, a value halfway between the bottom and top of the range places the leading edge of the scroll box in the middle of the scroll bar. In addition to using mouse clicks to change the scroll bar value, a user can also drag the scroll box to any point along the bar. The resulting value depends on the position of the scroll box, but it is always within the range of the to properties set by the user. ## LargeChange and SmallChange Properties When the user presses the PAGE UP or PAGE DOWN key or clicks in the scroll bar track on either side of the scroll box, the property changes according to the value set in the property. When the user presses one of the arrow keys or clicks one of the scroll bar buttons, the property changes according to the value set in the property. ## See also - - - [Controls to Use on Windows Forms](controls-to-use-on-windows-forms.md)