private void FormGestionCategorie_FormClosed(object sender, FormClosedEventArgs e) { if (modifierBien != null && ajouterBien == null) { FormInventaire form = modifierBien.form; Point location = modifierBien.Location; modifierBien.Close(); modifierBien = new ModifierBien(form); modifierBien.Location = location; modifierBien.tabControl1.SelectedIndex = 0; modifierBien.tabControl1.SelectedIndex = 1; modifierBien.Show(); } else { if (ajouterBien != null && modifierBien == null) { ajouterBien.tabControl1.SelectedIndex = 0; //changer d'onglet pour provoquer l'evenement "Enter" sur tabPage0 et ainsi retrouver le nouvel amortissemnt correspondant ajouterBien.tabControl1.SelectedIndex = 1; } } }