[转]c# winFrom 使窗体显示SplitContainer或Panel中

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

你可能感兴趣的:(contain)