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

override trackbarex left and right key behavior

Thread ID:





97760 Jan 5,2011 09:36 PM UTC Jan 7,2011 02:01 PM UTC WinForms 2
Tags: Tools
Adam Bruss
Asked On January 5, 2011 09:36 PM UTC

I'm working with a trackbarex and would like to do my own behavior for when the left and right key are pressed when the trackbar has focus. I've tried doing the following:

System::Void tunercontrol::m_tbarTuner_KeyDown( System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e )
if(e->KeyCode == Keys::Left)
e->Handled = true;
e->SuppressKeyPress = true;
// do my code

The problem is the value of the trackbar still changes. I don't want it to change here. Can this be accomplished without inheriting from trackbarex?

Adam Bruss
Replied On January 6, 2011 02:30 PM UTC

Basically how can I avoid having the trackbar scroll or change value when pressing the left or right keys?

Iniyen M A [Syncfusion]
Replied On January 7, 2011 02:01 PM UTC

Hi Adam,

Thanks for your interest in Syncfusion products.

The reported behavior is found to be an issue and has been fixed. Please create an incident undet out Direct –Trac support system if you wish to receive a patch for this fix.

Direct Trac link.


I have attached a sample having an workaround for this issue in the following link
[Sample Link]


Please refer the sample and let us know if you have concerns on this.

Iniyen M.A.


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