示例#1
0
        private void buttonAddJudge_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            UserControlAddJudge uc = new UserControlAddJudge();

            panel1.Controls.Add(uc);
            uc.Dock = DockStyle.Fill;
        }
示例#2
0
        private void buttonAddJudge_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();
            UserControlAddJudge uc = new UserControlAddJudge();

            f2.panel1.Controls.Add(uc);
            uc.Dock = DockStyle.Fill;
            f2.ShowDialog();
        }