Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/03/2008, 19:47
Avatar de Peterpay
Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Re: Sumas dos variables en c#..es facil, please!!!

mira cambialo asi

int value=( int.Parse(txtEfectivo.Text) + int.Parse(txtSubTotal.Text));

this.txtVuelto.Text =value.ToString();

y asegurate q los valores q metas no tengan punto decimal si lo tienen

cambia int por double

double value=( double.Parse(txtEfectivo.Text) + double.Parse(txtSubTotal.Text));

this.txtVuelto.Text =value.ToString();
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5