private void TB_Desde_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { TB_Hasta.Focus(); } }
private void TB_Hasta_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Escape) { TB_Hasta.Clear(); } }
private void TB_Desde_KeyDown(object sender, KeyEventArgs e) { //PresionarBotonBuscar(e); if (e.KeyCode == Keys.Enter) { TB_Hasta.Focus(); } }
private void TB_Desde_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (TB_Hasta.Text.Trim() == "") { TB_Hasta.Text = TB_Desde.Text; } TB_Hasta.Focus(); } else if (e.KeyCode == Keys.Escape) { TB_Desde.Text = ""; } }
private void TB_Desde_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { if (TB_Desde.Text.Replace("/", "").Trim() == "") { return; } TB_Hasta.Focus(); } else if (e.KeyData == Keys.Escape) { TB_Desde.Text = ""; } }
private void TB_Hasta_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { if (TB_Hasta.Text.Replace('/', ' ').Trim() == "") { return; } DGV_EvalSemProve.Rows.Clear(); button1_Click(null, null); } else if (e.KeyData == Keys.Escape) { TB_Hasta.Clear(); } }