拆分容器 [英] Split Container
本文介绍了拆分容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们
SplitterDistance必须在Panel1MinSize和Width-Panel2MinSize之间.
任何人都可以帮助我解决此错误...吗?
hi guys
SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize.
can any one help me in this error...?
#region splt7
//
// splt7
//
this.splt7.Dock = System.Windows.Forms.DockStyle.Fill;
this.splt7.Location = new System.Drawing.Point(0, 0);
this.splt7.Name = "Split3";
this.splt7.Orientation = System.Windows.Forms.Orientation.Vertical;
this.splt7.SplitterWidth = 1;
this.splt7.SplitterDistance = 10;
this.splt7.IsSplitterFixed = true;
this.splt7.BackColor = System.Drawing.SystemColors.Control;
//
// splt7.Panel1
//
this.splt7.Panel1.Controls.Add(this.pnl_Info);
this.splt7.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.splt7.Panel1.BackColor = System.Drawing.SystemColors.ActiveBorder;
//
// splt6.Panel2
//
this.splt7.Panel2.Controls.Add(this.splt8);
this.splt7.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.splt7.Size = new System.Drawing.Size(727, 20);
this.splt7.SplitterDistance = 580;
this.splt7.TabIndex = 1;
this.splt7.Panel2.BackColor = System.Drawing.SystemColors.Desktop;
#endregi
#region splt8
//
// splt8
//
this.splt8.Dock = System.Windows.Forms.DockStyle.Fill;
//this.splt8.Location = new System.Drawing.Point(0, 0);
this.splt8.Name = "Split3";
this.splt8.Orientation = System.Windows.Forms.Orientation.Horizontal;
this.splt8.SplitterWidth = 3;
this.splt8.SplitterDistance = 15;
this.splt8.IsSplitterFixed = true;
this.splt8.BackColor = System.Drawing.SystemColors.ActiveBorder;
//
// splt8.Panel1
//
this.splt8.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.splt8.Panel1.BackColor = System.Drawing.SystemColors.Control;
//
// splt8.Panel2
//
this.splt8.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
//this.splt8.Size = new System.Drawing.Size(727, 20);
this.splt8.SplitterDistance = 280;
this.splt8.TabIndex = 1;
this.splt8.Panel2.BackColor = System.Drawing.SystemColors.Desktop;
#endregion
on
on
推荐答案
您似乎已在Panel1或Panel2(或两者)上设置了MinSize,然后尝试将拆分器位置设置为小于该大小的Location.
You appear to have set a MinSize on either Panel1 or Panel2 (or both) and then tried to set the splitter position to a Location less than that size.
这篇关于拆分容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文