Esempio n. 1
0
        private void caiwuForm_Load(object sender, EventArgs e)
        {
            lbl.Add(((Label)label1));
            lbl[0].Image = Image.FromFile(Application.StartupPath + "\\imag\\" + lbl[0].Tag);
            groupBox2.Controls.Clear();
            yingyetongji_Form y = new yingyetongji_Form();

            y.TopLevel = false;
            groupBox2.Controls.Add(y);
            y.Show();
        }
Esempio n. 2
0
        private void label1_Click(object sender, EventArgs e)
        {
            groupBox2.Controls.Clear();
            yingyetongji_Form y = new yingyetongji_Form();

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