c# winFrom 使窗体显示SplitContainer或Panel中
Posted on 2009-07-22 22:45 codingsilence 阅读(420) 评论(0) 编辑 收藏 举报private void menuStepAdd_Click(object sender, EventArgs e)
{
frmAddStep addStep = new frmAddStep();
addStep.FormBorderStyle = FormBorderStyle.None;
addStep.TopLevel = false;
splitMain.Panel2.Controls.Add(addStep);
addStep.Show();
}
//"不显示"tabControl1的tabPage2
this.tabControl1.TabPages.Remove(tabPage2);