Пример #1
0
        private void pictureBox7_Click(object sender, EventArgs e)
        {
            this.Hide(); //the form disappears
            home form = new home();

            form.ShowDialog(); //this shows the form as a modal dialog box.
            this.Close();      //this closes the form to complete the form change
        }
Пример #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Hide();          //the form disappears
            home l1 = new home(); //creates a new level form and opens it

            l1.ShowDialog();      //this shows the form as a modal dialog box.
            this.Close();         //this closes the form to complete the form change
        }
Пример #3
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Hide();
            //character.characterImage = Image.FromFile("object.png");
            home home = new home();

            home.ShowDialog();
            this.Close();
        }