Your question and code indicate you need to get a good book on C#, and study the basics of the language, as well as study how Controls, like TextBox, work.
I recommend a somewhat older book by Chris Sells: [
^]
A TextBox [
^] accepts user-entered characters, and contains a string: to do something like calculate, you need to transform that string into units that make sense ... like two numbers, and a character like +-/* that will indicate what operation you want tp perform on those numeric units.
And, what if the user types weird stuff you can't use, or leaves out stuff that's necessary; you have to deal with that; do you catch errors, reset when there is an error ?
One alternative would be to use two WinForms NumericUpDown [
^] Controls for user number input, and another method for entering type of operation. Lots of different ways you could do that.