trackbar value IN C#

Oct 17 2008 2:23 PM


 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)