private void TxtValor_TextChanged(object sender, EventArgs e) { validador = new Validador(); try { TxtValor.Text = validador.Valor(TxtValor.Text); TxtValor.Select(TxtValor.Text.Length, 0); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void TxtValor_TextChanged(object sender, EventArgs e) { validarNumero = new ValidarNumero(); TxtValor.Text = validarNumero.Validar(TxtValor.Text); TxtValor.Select(TxtValor.Text.Length, 0); }