Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TrackBarControl.Scroll Event

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: 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