private void playAgain_Click(object sender, EventArgs e) { Form f = this.FindForm(); f.Controls.Remove(this); MainScreen cs = new MainScreen(); f.Controls.Add(cs); }
// Create an instance of the MainScreen private void Form1_Load_1(object sender, EventArgs e) { MainScreen cs = new MainScreen(); this.Controls.Add(cs); }