private void menuItemProjectProperties_Click(object sender, System.EventArgs e) { using (ProjectDialog dlg = new ProjectDialog()) { dlg.ShowDialog(this); } }