Gets or sets a value to be added or subtracted to the Value property when the <span id="frameworks:scroll_box" class ="gp">scroll box</span> is moved a large distance.
[Visual Basic] Public Property LargeChange As Integer [C#] public int LargeChange {get; set;} [C++] public: __property int get_LargeChange(); public: __property void set_LargeChange(int); [JScript] public function get LargeChange() : int; public function set LargeChange(int);
A numeric value. The default value is 10.
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 Value property changes according to the value set in the LargeChange property.
The following example uses the derived class, VScrollBar and sets some of its common properties. This code assumes that a VScrollBar has been instantiated on a form.
[Visual Basic]
Private Sub MySub() ' Set the Minimum & Maximum properties. VScrollBar1.Minimum = 0 ' Set the maximum property equal to the height of the scroll bar. VScrollBar1.Maximum = VScrollBar1.Height ' Set the starting value (middle of the scroll bar). VScrollBar.Value = VScrollBar1.Maximum / 2 ' Set the SmallChange & LargeChange properties to a percentage of the Maximum property. VScrollBar1.SmallChange = VScrollBar1.Maximum / 25 VScrollBar1.LargeChange = VScrollBar1.Maximum / 10 End Sub
ScrollBar Class | ScrollBar Members | System.WinForms Namespace | SmallChange