private void Day_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter && Day.Focused) { Month.Focus(); Month.Focus(); Month.Select(0, 3); } else { CheckKeyUpDown(e, Day, 31); } }
void Month_TextChanged(object sender, EventArgs e) { if (Convert.ToBoolean(Tag)) { if (Month.Text.Length == 2 && !isUpDowningKey) { Year.Focus(); } } else { Tag = true; } }
void Atiran2DateControl_Enter(object sender, EventArgs e) { if (_dateCriterionFromServer) { if (NextControl != null && NextControl.Visible && NextControl.Enabled) { NextControl.Focus(); } else if (NextControl != null && (!NextControl.Visible | !NextControl.Enabled)) { SendKeys.Send("{TAB}"); } this.Enabled = false; } else { Day.Focus(); } }
private void Txthourstart_TextChanged(object sender, EventArgs e) { SetRegularExpressionInt((TextBox)sender); if (int.Parse(this.txthourstart.Text) > 24) { txthourstart.Text = "24"; } if (txthourstart.Text.Length == 2) { txtminutestart.Focus(); } }
private void Txtstarttime_Enter(object sender, EventArgs e) { txthourstart.Focus(); }