private void button_Click(object sender, EventArgs e) { cptValide = 0; for (int i = 1; i <= 3; i++) { //image = (PictureBox)Controls["picValid" + i]; //image.Visible = false; } btnCreerOS.Enabled = false; form.AddSystemExploitation(txtNom.Text, txtVersion.Text, txtEdition.Text); this.Close(); }