We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TrackBarEx Control Events

Thread ID:





69692 Nov 8,2007 09:08 AM UTC Nov 9,2007 06:24 AM UTC WinForms 1
Tags: Tools
Rouslan Vorobiov
Asked On November 8, 2007 09:08 AM UTC

I'm using the TrackBarEx control in my application.I need to trap Scroll event of it but there is no such event.
There is ValueChaged event instead,but this event is not completely suitable for my needs.
Does anybody can advise me how do I solve the problem?

Thank' a lot!

Sri Subhashini M [Syncfusion]
Replied On November 9, 2007 06:24 AM UTC


I was able to view the condition you have described here. It is not directly possible.

We have a customized class of TrackBarEx that extends to have a ScrollEvent whenever MouseDown/KeyDown is dover over the THUMB.

public class CustomizedTrackBarEx : TrackBarEx
protected override void OnKeyDown(KeyEventArgs e)
if (e.KeyData == Keys.Left)

protected override void OnMouseClick(MouseEventArgs e)

Then, add the custom event with the TrackbarEx control,

// creating Custom event
this.trackBarEx1.ScrollChangedValueEvent += new TrackBarScrollEventHanlder(trackBarEx1_ScrollChangedValueEvent);
// Declaration of the custom event
void trackBarEx1_ScrollChangedValueEvent(TrackBarExScrollEventArgs sample)
this.trackBarEx1.ButtonColor = Color.FloralWhite;

Please take a look at the sample and let me know if it helps.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon