private void TB_DNI_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { //if (TB_DNI.Text.Trim() == "") return; TB_DescPerfil.Focus(); } else if (e.KeyData == Keys.Escape) { TB_DNI.Text = ""; } }
private void TB_DescPerfil_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (TB_CodPerfil.Text == "") { TB_DescPerfil.Focus(); } else { LlenarPerfil(); TB_CodSector.Focus(); } } }