在按钮的click事件里写
switch 符号
case +:
txtbox3.text = txtbox1.text + txtbox2;
break;
case -:
txtbox3.text = txtbox1.text - txtbox2;
break;
case *:
txtbox3.text = txtbox1.text * txtbox2;
break;
case /:
txtbox3.text = txtbox1.text / txtbox2;
break;
格式大概就这样了。其他自己想想咯