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.