NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ScrollBar.Minimum

Gets or sets the lower limit of values of the scrollable range.

[Visual Basic]
Public Property Minimum As Integer
[C#]
public int Minimum {get; set;}
[C++]
public: __property int get_Minimum();
public: __property void set_Minimum(int);
[JScript]
public function get Minimum() : int;
public function set Minimum(int);

Property Value

A numeric value. The default value is 0.

Example [Visual Basic]

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

See Also

ScrollBar Class | ScrollBar Members | System.WinForms Namespace | Maximum