private void addPartToolStripMenuItem_Click(object sender, EventArgs e) { frmAddPart addPart = new frmAddPart(this); addPart.StartPosition = FormStartPosition.CenterScreen; addPart.Show(); this.Hide(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); frmMainMenu MainMenu = new frmMainMenu(); MainMenu.StartPosition = FormStartPosition.CenterScreen; frmAddPart addPart = new frmAddPart(); Application.Run(MainMenu); }