private void TB_Desde_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { TB_Hasta.Focus(); } else if (e.KeyCode == Keys.Escape) { TB_Desde.Clear(); } }
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.Clear(); } }