private void tryAgainButton_Click(object sender, EventArgs e) { Form f = this.FindForm(); f.Controls.Remove(this); StartScreen ss = new StartScreen(); f.Controls.Add(ss); }
private void startButton_Click(object sender, EventArgs e) { startButton.Visible = false; instructionsButton.Visible = false; pictureBox1.Visible = false; pictureBox2.Visible = false; pictureBox3.Visible = false; pictureBox4.Visible = false; pictureBox5.Visible = false; pictureBox6.Visible = false; this.BackgroundImage = null; Form f = this.FindForm(); f.Controls.Remove(this); StartScreen ss = new StartScreen(); f.Controls.Add(ss); }