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

            f.Controls.Remove(this);

            levelopitions los = new levelopitions();

            f.Controls.Add(los);
        }
Exemple #2
0
        private void startB_Click(object sender, EventArgs e)
        {
            //add button sound
            f1.bPlayer.Play();
            //stop background music
            f1.backPlayer.Stop();
            //Thread.Sleep(400);

            Form f = this.FindForm();

            f.Controls.Remove(this);

            levelopitions los = new levelopitions();

            f.Controls.Add(los);
        }