Skip to main content
A newer version of this page is available. .
All docs
V21.2

TrackBarControl.Scroll Event

Fires when a user changes the trackbar’s value using the mouse or keyboard.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event EventHandler Scroll

Event Data

The Scroll event's data class is EventArgs.

Remarks

Use the TrackBarControl.Value property to get the control’s new value when this event fires.

void trackBarControl1_Scroll(object sender, EventArgs e) {
    int value = (sender as TrackBarControl).Value;
    //...
}
See Also