private void BtnNew_Click(object sender, EventArgs e) { // BONTON NEW panel1.Enabled = true; TBPrenom.Focus(); DDNChau.Visible = true; DDSexe.Visible = true; error1.Visible = false; error2.Visible = false; error3.Visible = false; error4.Visible = false; error5.Visible = false; }
private void btnreset_Click(object sender, EventArgs e) { TBPrenom.Focus(); TBPrenom.Text = ""; TBNom.Text = ""; TBMail.Text = ""; TBTel.Text = ""; TBNumPermis.Text = ""; DDSexe.selectedIndex = 2; DBstate1.Visible = true; error1.Visible = false; error2.Visible = false; error3.Visible = false; error4.Visible = false; error5.Visible = false; }