This is a migrated thread and some comments may be shown as answers.

trackbar orientation

1 Answer 94 Views
TrackBar
This is a migrated thread and some comments may be shown as answers.
Nebras
Top achievements
Rank 1
Nebras asked on 20 Apr 2011, 02:08 PM
Hello, Telerik Team
When  a track bar orientation is "Vertical" , I want to let the maximum value of the trackbar to be at the top and the minimum value at the buttom , How? 

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 22 Apr 2011, 01:51 PM
Hello Nebras ,

Thank you for writing.

You do not have to change the position of the maximum and minimum values. You can use the following formula to calculate the value as if the minimum and maximum values positions on the RadTrackBar are switched:

int value = this.radTrackBar1.Maximum - this.radTrackBar1.Value + this.radTrackBar1.Minimum;

I hope this will help you. If you need further assistance I would be glad to help.

Kind regards,
Ivan Petrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TrackBar
Asked by
Nebras
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or