方法如下:
其中_cstCatAssignmentMgr为form类实例,将这个实例添加到一个panel中:
this._cstCatAssignmentMgr.TopLevel = false;
this._cstCatAssignmentMgr.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;this._cstCatAssignmentMgr.Dock = DockStyle.Fill;
this._cstCatAssignmentMgr.Show();
this.panel1.Controls.Add(this._cstCatAssignmentMgr);
this._cstCatAssignmentMgr.Show();