private void Add3_TextChanged(object sender, EventArgs e) { if (Add3.Text.Length == 3) { Add4.Focus(); } }
private void Add3_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.ShiftKey | (e.KeyCode == Keys.Back && Add3.Text == "")) { Add2.Focus(); } else if (e.KeyCode == Keys.Decimal && Add3.Text.Length >= 1) { Add4.Focus(); } }
private void Add3_KeyPress(object sender, KeyPressEventArgs e) { if ((char.IsNumber(e.KeyChar) & RangeValidation(e.KeyChar.ToString(), Add3.Text)) | (char.IsControl(e.KeyChar) & (!char.IsWhiteSpace(e.KeyChar)))) { e.Handled = false; if (Add3.Text.Length >= 2) { Add4.Focus(); } } else { e.Handled = true; } }