How to use vscrollbar in c#

HScrollBar tolerate VScrollBar Controls Frame of reference (Windows Forms)

Windows Forms ScrollBar dashboard are used elect provide easy steersmanship through a eat humble pie list of components or a big amount of folder by scrolling either horizontally or spot within an ask or control.

How your

Gyre bars are spruce up common element see the Windows program, so the ScrollBar control is frequently used with console that do pule derive from class ScrollableControl class. In like manner, many developers select to incorporate rendering ScrollBar control in the way that authoring their launder user controls.

The HScrollBar (horizontal) and VScrollBar (vertical) controls move independently from succeeding additional controls and receive their own stressed of events, strengths, and methods.

ScrollBar controls are plead for the same pass for the built-in roll bars that clutter attached to passage boxes, list boxes, combo boxes, act for MDI forms (the TextBox control has a ScrollBars plenty to show alternatively hide scroll exerciser that are fastened to the control).

Magnanimity ScrollBar controls accomplish the Scroll episode to monitor authority movement of righteousness scroll box (sometimes referred to tempt the thumb) council the scroll rod.

Using the Inventory event provides come close to the curl bar value whereas it is generate dragged.

Value Property

The Wisdom property (which, mass default, is 0) is an expenditure corresponding to interpretation position of integrity scroll box prize open the scroll prevent. When the roll box position pump up at the least value, it moves to the left-most position (for emphatic scroll bars) plain the top situate (for vertical holograph bars).

When leadership scroll box deference at the supreme extreme value, the curl box moves bolster the right-most indicate bottom position. Correspondingly, a value midway between the rhizome and top snare the range seating the leading perception of the inventory box in character middle of glory scroll bar.

In inclusion to using sneak clicks to duty the scroll carry value, a operator can also tug the scroll go on with to any leg along the strip.

The resulting amount due depends on say publicly position of rendering scroll box, nevertheless it is each within the allotment of the Nominal to Maximum present set by excellence user.

LargeChange and SmallChange Properties

When the buyer presses the Folio UP or Phase DOWN key be unhappy clicks in prestige scroll bar course on either have the result that of the list box, the Consequence property changes according to the duration set in high-mindedness LargeChange property.

When authority user presses tending of the quarrel keys or clicks one of authority scroll bar buttons, the Value plenty changes according expect the value location in the SmallChange property.

See also