分隔面板
SplitContainer sc = new SplitContainer(); sc.Name = "sc"; sc.Orientation = Orientation.Vertical; sc.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; sc.Location = new System.Drawing.Point(280, 0); sc.Dock = DockStyle.Fill; sc.Panel1.AutoScroll = true; sc.Panel1.Controls.Add(gd_schelingProcess); sc.Panel2.Controls.Add(gd_materialStockQty); sc.Size = new System.Drawing.Size(704, 20); sc.SplitterDistance = 268; sc.Panel1.ResumeLayout(false); sc.Panel2.ResumeLayout(false);