0

The value of progressbar.value

Hi, can progressbar1.value be taken from textbox1.text, that is, if you enter 40 in textbox1, progressbar1 is filled by 40%? C#

29th Feb 2020, 8:18 PM
olmtvck
olmtvck - avatar
2 Respostas
0
If you can copy textbox1.Text into a string and convert that string into number, then you can use the number as the progressbar1.Value. Use `int.TryParse` to convert the string into number, in case the string doesn't represent a valid numeric string.
29th Feb 2020, 8:51 PM
Ipang
+ 3
Yea Progressbar1.value= Convert.ToInt(textbox1.text);
2nd Mar 2020, 12:57 PM
hossein B
hossein B - avatar