解决方法
要将字符串转换为int,您可以使用,Parse:
- string text = "1234";
- int value = int.Parse(text);
或者您可以使用NumericUpDown控件.
- string text = "1234";
- int value = int.Parse(text);
或者您可以使用NumericUpDown控件.