
21/03/2008, 19:47
|
 | Colaborador | | Fecha de Ingreso: septiembre-2007 Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 7 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(); |