Example #1
0
        private void label3_Click(object sender, EventArgs e)
        {
            groupBox2.Controls.Clear();
            yaofan_Form p = new yaofan_Form();

            p.TopLevel = false;
            groupBox2.Controls.Add(p);
            p.Show();
        }
Example #2
0
        private void yaofangForm_Load(object sender, EventArgs e)
        {
            lbl.Add(((Label)label3));
            lbl[0].Image = Image.FromFile(Application.StartupPath + "\\imag\\" + lbl[0].Tag);
            groupBox2.Controls.Clear();
            yaofan_Form p = new yaofan_Form();

            p.TopLevel = false;
            groupBox2.Controls.Add(p);
            p.Show();
        }