private void ButtonAjouter_Click(object sender, EventArgs e) { try { AddVehicule add = new AddVehicule(); add.StartPosition = FormStartPosition.CenterScreen; add.ShowDialog(); } catch (Exception) { throw; } }
private void ButtonAjouter_Click(object sender, EventArgs e) { try { AddVehicule add = new AddVehicule(); add.Owner = this; add.StartPosition = FormStartPosition.CenterScreen; add.TopMost = true; add.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }