Click here to Skip to main content
16,006,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all,,
i want to control a speed rotation using sliding view in my GUI.
i'am imagine,,for example
if i sliding to right or left trackbar in windows form,, so this trackbar can output some data integer X.
but i dont know script in C# for that action,,
can all help me,,
please,,
thank u
Posted

1 solution

your description is not clearly but this code may help you:

JUST Follow this steps:
1- create label and gives name "lblTrackBar".
2- create TrackBar and set Maximum value to 100 [or any value].
3- by clicking double click on TrackBar just add this code:
C#
private void trackBar1_Scroll(object sender, EventArgs e)
        {
            lblTrackBar.Text = this.trackBar1.Value.ToString();
        }


4- run your application and slide the trackbar to see label while scrolling.
5- Final Enjoy.

if this is what you wont it will be wonderful else rewrite your description.
Good Luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900