System.Windows.Forms.TrackBar Class

Represents a standard Windows track bar.

See Also: TrackBar Members

Syntax

[System.ComponentModel.DefaultProperty("Value")]
[System.ComponentModel.DefaultEvent("Scroll")]
[System.ComponentModel.Designer("System.Windows.Forms.Design.TrackBarDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.ComponentModel.DefaultBindingProperty("Value")]
public class TrackBar : Control, System.ComponentModel.ISupportInitialize

Remarks

The System.Windows.Forms.TrackBar is a scrollable control similar to the System.Windows.Forms.ScrollBar control. You can configure ranges through which the value of the TrackBar.Value property of a track bar scrolls by setting the TrackBar.Minimum property to specify the lower end of the range and the TrackBar.Maximum property to specify the upper end of the range.

The TrackBar.LargeChange property defines the increment to add or subtract from the TrackBar.Value property when clicks occur on either side of the scroll box. The track bar can be displayed horizontally or vertically.

You can use this control to input numeric data obtained through the TrackBar.Value property. You can display this numeric data in a control or use it in code.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0