Пример #1
0
        private void caiwuForm_Load(object sender, EventArgs e)
        {
            yuangongguanli1 y = new yuangongguanli1();

            y.TopLevel = false;
            groupBox2.Controls.Add(y);
            y.Show();
        }
Пример #2
0
        private void label5_Click(object sender, EventArgs e)
        {
            if (lbl.Count != 0)
            {
                string str = (lbl[0].Tag + "").Replace('-', ' ');
                // lbl[0].Image = Image.FromFile(Application.StartupPath + "\\imag\\" + str);
                lbl.Clear();
            }
            lbl.Add(((Label)sender));
            // ((Label)sender).Image = Image.FromFile(Application.StartupPath + "\\imag\\" + ((Label)sender).Tag);
            groupBox2.Controls.Clear();
            yuangongguanli1 y = new yuangongguanli1();

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