Example #1
0
        private void btnClose_Click(object sender, EventArgs e)
        {
            Form_startMeny newForm = new Form_startMeny();

            newForm.Show();
            this.Hide();
        }
Example #2
0
        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();
            }
        }