private void Con2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Back) { Con1.Clear(); Con1.Focus(); // e.Handled = true; p = 1; } }
private void textBox4_TextChanged(object sender, EventArgs e) { if (p == 0) { Con1.Focus(); p = 0; } if (p == 1) { p = 0; } }
private void New4_TextChanged(object sender, EventArgs e) { if (old1.Text == "" && old2.Text == "" & old3.Text == "" && old4.Text == "") { label16.Visible = true; label16.Text = "Fill all text !"; New1.Clear(); New2.Clear(); New3.Clear(); New4.Clear(); New1.Focus(); } else { label16.Visible = false; Con1.Focus(); } }