I get error: Format exception was unhandled, Input string was not in a correct format.
for this line:
int right = System.Convert.ToInt32(rightAngleTB.Text);
rightAngleTB is TextBox, the value Text is "25" (without the "").
I really don´t see the problem :(
You really should use int.TryParse
. It is much easier to convert and you won't get exceptions.
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