How do I convert a TextBox to int or is there a box inside WPF that supports only numbers?
To convert string to int you can use, Parse
:
string text = "1234";
int value = int.Parse(text);
Or you could use NumericUpDown control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With