private void button2_Click(object sender, EventArgs e) { int userChoice; userChoice = Convert.ToInt32(userChoicetxt.Text); if (userChoice == 1) { Monsterpanel.Visible = true; Monsterpanel.BringToFront(); } else if (userChoice == 2) { endingpanel.Visible = true; endingpanel.BringToFront(); } }
private void continueSwordbtn_Click(object sender, EventArgs e) { Monsterpanel.Visible = true; Monsterpanel.BringToFront(); }