1
Answer

trackbar value IN C#

aakash malhotra

aakash malhotra

16y
7.3k
1


 I have a question related to trackbars in C#.

I need to pass a string value to trackbar. Suppose I have a number 3. It is saved as a string "three". Now I need to use this to set trackbar value to 3. How do I do that in C#.

I tried

trackBarSpeed.Value.ToString() = hant;  // hant = "three"

and  trackBarSpeed.Value = int.Parse(hant);  but nothing seems to work/////  PLZ help....
Answers (1)