コード例 #1
0
ファイル: change1.cs プロジェクト: eszteryelena/suncoven
        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
ファイル: menu.cs プロジェクト: eszteryelena/suncoven
        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();
        }