将Form置入splitContainer的panel中

将Form置入splitContainer的panel中

private void button1_Click_1(object sender, EventArgs e)
        {
            Form2 form = new Form2();
            form.FormBorderStyle = FormBorderStyle.None;
            form.TopLevel = false;
            splitContainer1.Panel2.Controls.Clear();
            splitContainer1.Panel2.Controls.Add(form);
            form.Show();
        }

上一篇:Video标签的属性


下一篇:Winform-自定义控件