System.Windows.Forms.TrackBar Members

The members of System.Windows.Forms.TrackBar are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Constructors

Initializes a new instance of the System.Windows.Forms.TrackBar class.

Public Properties

override
AutoSizebool.

Gets or sets a value indicating whether the height or width of the track bar is being automatically sized.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image for the System.Windows.Forms.TrackBar control.

override
BackgroundImageLayoutImageLayout.

Gets or sets an System.Windows.Forms.ImageLayout value; however, setting this property has no effect on the System.Windows.Forms.TrackBar control.

override
FontSystem.Drawing.Font.

Overrides Control.Font

override
ForeColorSystem.Drawing.Color.

Gets the foreground color of the track bar.

ImeModeImeMode.

Gets or sets the Input Method Editor (IME) mode supported by this control.

LargeChangeint.

Gets or sets a value to be added to or subtracted from the TrackBar.Value property when the scroll box is moved a large distance.

Maximumint.

Gets or sets the upper limit of the range this System.Windows.Forms.TrackBar is working with.

Minimumint.

Gets or sets the lower limit of the range this System.Windows.Forms.TrackBar is working with.

OrientationOrientation.

Gets or sets a value indicating the horizontal or vertical orientation of the track bar.

PaddingPadding.

Gets or sets the space between the edges of a System.Windows.Forms.TrackBar control and its contents.

RightToLeftLayoutbool.

Gets or sets a value indicating whether the contents of the System.Windows.Forms.TrackBar will be laid out from right to left.

SmallChangeint.

Gets or sets the value added to or subtracted from the TrackBar.Value property when the scroll box is moved a small distance.

override
Textstring.

Gets or sets the text of the System.Windows.Forms.TrackBar.

TickFrequencyint.

Gets or sets a value that specifies the delta between ticks drawn on the control.

TickStyleTickStyle.

Gets or sets a value indicating how to display the tick marks on the track bar.

Valueint.

Gets or sets a numeric value that represents the current position of the scroll box on the track bar.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Overrides the Control.CreateParams property.

[read-only]
override
DefaultImeModeImeMode.

Gets a value indicating the mode for the Input Method Editor (IME) for the System.Windows.Forms.TrackBar.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the System.Windows.Forms.TrackBar.

override
DoubleBufferedbool.

Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker; however, this property has no effect on the System.Windows.Forms.TrackBar control

Public Methods

BeginInit()

Begins the initialization of a System.Windows.Forms.TrackBar that is used on a form or used by another component. The initialization occurs at run time.

EndInit()

Ends the initialization of a System.Windows.Forms.TrackBar that is used on a form or used by another component. The initialization occurs at run time.

SetRange(int, int)

Sets the minimum and maximum values for a System.Windows.Forms.TrackBar.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.TrackBar control.

Protected Methods

override
CreateHandle()

Overrides the Control.CreateHandle method.

override
IsInputKey(Keys) : bool

Handles special input keys, such as PAGE UP, PAGE DOWN, HOME, and END.

override
OnBackColorChanged(EventArgs)

This method is called by the control when any property changes. Inheriting controls can override this method to get property change notification on basic properties. Inheriting controls must call base.propertyChanged.

override
OnHandleCreated(EventArgs)

Use the Control.OnHandleCreated(EventArgs) method.

override
OnMouseWheel(MouseEventArgs)
Documentation for this section has not yet been entered.
OnRightToLeftLayoutChanged(EventArgs)

Raises the TrackBar.RightToLeftLayoutChanged event.

OnScroll(EventArgs)

Raises the TrackBar.Scroll event.

override
OnSystemColorsChanged(EventArgs)

Raises the Control.SystemColorsChanged event.

OnValueChanged(EventArgs)

Raises the TrackBar.ValueChanged event.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)

Overrides Control.setBoundsCore to enforce autoSize.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

AutoSizeChanged

Occurs when the value of the TrackBar.AutoSize property changes.

BackgroundImageChanged

Occurs when the TrackBar.BackgroundImage property changes.

BackgroundImageLayoutChanged

Occurs when the TrackBar.BackgroundImageLayout property changes.

Click

Occurs when the user clicks the System.Windows.Forms.TrackBar control.

DoubleClick

Occurs when the user double-clicks the System.Windows.Forms.TrackBar control.

FontChanged

Occurs when the TrackBar.Font property changes.

ForeColorChanged

Occurs when the TrackBar.ForeColor property changes.

ImeModeChanged

Occurs when the TrackBar.ImeMode property changes.

MouseClick

Occurs when the user clicks the System.Windows.Forms.TrackBar control.

MouseDoubleClick

Occurs when the user double-clicks the System.Windows.Forms.TrackBar control.

PaddingChanged

Occurs when the value of the TrackBar.Padding property changes.

Paint

Occurs when the System.Windows.Forms.TrackBar control is drawn.

RightToLeftLayoutChanged

Occurs when the value of the TrackBar.RightToLeftLayout property changes.

Scroll

Occurs when either a mouse or keyboard action moves the scroll box.

TextChanged

Occurs when the TrackBar.Text property changes.

ValueChanged

Occurs when the TrackBar.Value property of a track bar changes, either by movement of the scroll box or by manipulation in code.