private void btnReturnToMenu_Click(object sender, EventArgs e) { MenuForm frmMenu = new MenuForm(); //show the menu window frmMenu.Show(); //and hide the game window this.Hide(); }
//Returns user to main user menu private void btnReturn_Click_1(object sender, EventArgs e) { //creates a new menu form MenuForm frmMenu = new MenuForm(); //show the menu window frmMenu.Show(); //hides current level editor window this.Hide(); //hide the menu form }