110,535
社区成员
发帖
与我相关
我的任务
分享
Panel设计器代码
//
// m_plNav
//
this.m_plNav.BackColor = System.Drawing.Color.Transparent;
this.m_plNav.Dock = System.Windows.Forms.DockStyle.Left;
this.m_plNav.Location = new System.Drawing.Point(0, 24);
this.m_plNav.Name = "m_plNav";
this.m_plNav.Size = new System.Drawing.Size(248, 417);
this.m_plNav.TabIndex = 3;
this.m_plNav.Visible = false;
将Tree放入Panel
//这个是Form,里面是一个Tree
GroupFrm gf = new GroupFrm();
gf.MdiParent = this;
gf.Show();
//将Panle指定为TreeForm的Parent
gf.Parent = this.m_plNav;