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添加用户控件
        }
posted @ 2014-12-18 11:35  平民的麦田  阅读(2795)  评论(0编辑  收藏  举报