Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/03/2010, 16:43
Avatar de eperedo
eperedo
 
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 14 años, 7 meses
Puntos: 16
Respuesta: la suma de dos textbox

Es que el valor de txtquinquenio al estar vacío no lo puede sumar.
Debes de validar ambos textbox's para que no tengas problemas.
Código:
if (string.IsNullOrEmpty(this.textBox2.Text))
            {
                this.textBox2.Text = "0";
            }
            if (string.IsNullOrEmpty(this.textBox1.Text))
            {
                this.textBox1.Text = "0";
            }
Algo así ó podrías darle por defecto el valor 0 y así no tendrías problemas.

Espero te ayude
__________________
Eduardo Peredo
Wigoin