Solitaire
All inputs and outputs in the computer MUST be strings. If a number value is needed for math processing, the string representation must be converted into a number type. After processing, the result must then be converted back into a string for display.
All textboxes accept only a string/text input. You can use the TryParse method to convert a numeric string into a number type. For example:
Integer.TryParse(TextBox1.Text, inum)
or
Double.TryParse(TextBox2.Text, dnum)
Then do your math processing with the number values (which should all be of the same type) and convert the answer to a string for display in another textbox. For example, assuming answer, num1, and num2 are all integers (or all doubles):
answer = num1 + num2
TextBox3.Text = answer.ToString()
Note, if the text input was non-numeric or blank, the TryParse method will return 0 without generating a run-time error.