private void Add2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.ShiftKey | (e.KeyCode == Keys.Back && Add2.Text == "")) { Add1.Focus(); } else if (e.KeyCode == Keys.Decimal && Add2.Text.Length >= 1) { Add3.Focus(); } }
private void TxtIPAddress_Load(object sender, EventArgs e) { Add1.Focus(); }