分隔面板

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

 

posted @ 2015-06-29 15:08  YyuTtian  阅读(115)  评论(0编辑  收藏  举报