/// <summary>
/// 显示窗体
/// </summary>
/// <param name="frm">要显示的窗体实例</param>
private void ShowForm(Form frm)
{
frm.MaximizeBox = true;
frm.TopLevel = false;
frm.FormBorderStyle = FormBorderStyle.None;
frm.BackColor = this.panel2_content.BackColor;
frm.Dock = this.panel2_content.Dock;
this.panel2_content.Controls.Clear();
this.panel2_content.Controls.Add(frm);
frm.Show();
}
记录下使用过程。标签:Form,FormBorderStyle,frm,content,Dock,panel2,panel,Winform From: https://blog.51cto.com/51souta/5805044