Cita:
Iniciado por ramirezmario7
hola.
Podrias hacerlo de varias formas.
Podrias enviar la informacion de los textbox a variables enteras y despues hacer la operacion, algo asi
int valor1 = Convert.ToInt32(this.txtval1.Text);
int valor2 = Convert.ToInt32(this.txtval2.Text);
int suma = valor1+valor2;
tambien podrias hacer esto
int suma = Convert.ToInt32(this.txtval1.text)+Convert.ToInt32 (this.txtVal2.text);
Gracias por responder amigo.