I am trying to convert a textBox
entry into an integer value so it can be used in an equation.
When I try create the int
value using
int number1 = int.Parse(num1.Text);
I get an error:
A field initializer cannot reference the non-static field, method, or property 'Tutorial_Form.Form1.num1'