private void TB_AñoDesde_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { TB_AñoHasta.Focus(); } }
private void TB_AñoDesde_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (TB_AñoDesde.Text.Replace(" ", "").Length == 10) { TB_AñoHasta.Focus(); } } else if (e.KeyCode == Keys.Escape) { TB_AñoDesde.Text = ""; } }