private void btnClose_Click(object sender, EventArgs e) { Form_startMeny newForm = new Form_startMeny(); newForm.Show(); this.Hide(); }
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(); } }