Esempio n. 1
0
        private void caiwuForm_Load(object sender, EventArgs e)
        {
            renyuantongji1 y = new renyuantongji1();

            y.TopLevel = false;
            groupBox2.Controls.Add(y);
            y.Show();
        }
Esempio n. 2
0
        private void label4_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();
            renyuantongji1 y = new renyuantongji1();

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