Ejemplo n.º 1
0
        private void caiwuForm_Load(object sender, EventArgs e)
        {
            renyuantongji y = new renyuantongji();

            y.TopLevel = false;
            groupBox2.Controls.Add(y);
            y.Show();
        }
Ejemplo 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();
            renyuantongji y = new renyuantongji();

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