コード例 #1
0
        private void addPartToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAddPart addPart = new frmAddPart(this);

            addPart.StartPosition = FormStartPosition.CenterScreen;
            addPart.Show();
            this.Hide();
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            frmMainMenu MainMenu = new frmMainMenu();

            MainMenu.StartPosition = FormStartPosition.CenterScreen;

            frmAddPart addPart = new frmAddPart();

            Application.Run(MainMenu);
        }