Name
ScrollBar
Synopsis
This is the abstract base class for the HScrollBar
and the VScrollBar controls.
It has properties that define the Minimum and
Maximum values for the scrollbar, and you can get
or set the current Value.
The SmallChange property determines the value to
be added or subtracted when the buttons are clicked (or the arrow
keys are pressed). Similarly, the LargeChange
property determines the value to be added or subtracted when the
slider body is clicked (or the page up/down keys are pressed).
As the Value is changed, the control raises the
ValueChanged event. When the scrollbox moves, it
raises a Scroll event. Note that if you drag the
slider knob, you get a Scroll when the mouse
button is first depressed (with
ScrollEventArgs.NewValue = =
Value). As the mouse moves, you get a
Scroll before the Value has
been updated, then a ValueChanged event as the
Value is updated. Finally, you get another
Scroll as the mouse is released (with
ScrollEventArgs.NewValue = =
Value).
public abstract class ScrollBar : Control { // Public Constructors public ScrollBar(); // Public Instance Properties public override Color BackColor{set; get; } // overrides Control public override Image BackgroundImage{set; get; } // overrides Control public override Font Font{set; get; } // overrides Control public override Color ForeColor{set; get; } // overrides Control public ImeMode ImeMode{set; get; } // overrides Control public int LargeChange{set; get; } public int Maximum{set; get; } public int ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access