winform Form窗体和UserControl用户空间嵌入Panel容器并填充
private void sbtbflList_Click(object sender, EventArgs e) { ucxmflList ucfl = new ucxmflList();//用户控件 ucfl.Dock = DockStyle.Fill;//填充panel scPanaels.Panel2.Controls.Add(ucfl);//向panel添加用户控件 }
private void sbtbflList_Click(object sender, EventArgs e) { ucxmflList ucfl = new ucxmflList();//用户控件 ucfl.Dock = DockStyle.Fill;//填充panel scPanaels.Panel2.Controls.Add(ucfl);//向panel添加用户控件 }