其他分享
首页 > 其他分享> > 将Form置入splitContainer的panel中

将Form置入splitContainer的panel中

作者:互联网

image

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();
        }

标签:Form,form,splitContainer1,FormBorderStyle,Controls,Form2,splitContainer,Panel2,p
来源: https://www.cnblogs.com/HarryChis/p/10415532.html