Beispiel #1
0
        // private void playButton_Click(object sender, EventArgs e)


        private void Form1_Load(object sender, EventArgs e)
        {
            //launch the Main Screen
            Mainscreen ms = new Mainscreen();

            this.Controls.Add(ms);
        }
Beispiel #2
0
        private void closeButton_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();

            f.Controls.Remove(this);

            Mainscreen ms = new Mainscreen();

            f.Controls.Add(ms);
        }