private void textb_id_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { e.Handled = true; SendKeys.Send("{TAB}"); //envia la tecla TAB y asi para al siguiente campo } e.Handled = Validadores.numerico(e.KeyChar); }
private void textb_edad_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { e.Handled = true; SendKeys.Send("{TAB}"); } e.Handled = Validadores.numerico(e.KeyChar); }