TrackBar.SetRange(Int32, Int32) Method

Definition

Sets the minimum and maximum values for a TrackBar.

public:
 void SetRange(int minValue, int maxValue);
public void SetRange (int minValue, int maxValue);
member this.SetRange : int * int -> unit
Public Sub SetRange (minValue As Integer, maxValue As Integer)

Parameters

minValue
Int32

The lower limit of the range of the track bar.

maxValue
Int32

The upper limit of the range of the track bar.

Remarks

You can use this method to set the entire range for the TrackBar at the same time. To set the minimum or maximum values individually, use the Minimum and Maximum properties. If the minValue parameter is greater than the maxValue parameter, maxValue is set equal to minValue.

Applies to

See also