示例#1
0
        private void playAgain_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();

            f.Controls.Remove(this);
            MainScreen cs = new MainScreen();

            f.Controls.Add(cs);
        }
示例#2
0
        // Create an instance of the MainScreen

        private void Form1_Load_1(object sender, EventArgs e)
        {
            MainScreen cs = new MainScreen();

            this.Controls.Add(cs);
        }