public void clerar() { old1.Clear(); old2.Clear(); old3.Clear(); old4.Clear(); New1.Clear(); New2.Clear(); New3.Clear(); New4.Clear(); Con1.Clear(); Con2.Clear(); Con3.Clear(); Con4.Clear(); button3.Hide(); }
private void New3_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Back) { New2.Clear(); New2.Focus(); p = 1; } }
private void textBox1_TextChanged(object sender, EventArgs e) { if (p == 0) { New2.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(); } }
static void Main(string[] args) { Old o = new Old(); New1 n1 = new New1(); New2 n2 = new New2(); }