Maybe I see your issues. You need to calculate a number that's input from a textbox. With the textbox you get a string, you can convert this to an int by using
Code:
int val1 = int.Parse(textBox1.Text);
Then you can do calculations, and assign a result to the label
Code:
label1.Text = valx.ToString();