コード例 #1
0
        private void btnClose_Click(object sender, EventArgs e)
        {
            Form_startMeny newForm = new Form_startMeny();

            newForm.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: GameForm.cs プロジェクト: jejecoding/Spelet
        private void btnClose_Click(object sender, EventArgs e)
        {
            DialogResult exitGame = MessageBox.Show("Are you sure you want to exit to main menu? Saving is not possible at this time.", "Exit to main menu?", MessageBoxButtons.YesNo);

            if (exitGame == DialogResult.Yes)
            {
                Form_startMeny newForm = new Form_startMeny();
                newForm.Show();
                this.Hide();
            }
        }