splitContainer.SplitterDistance的问题
////splitContainer1//this.splitContainer1.BorderStyle=System.Windows.Forms.BorderStyl...
//
// splitContainer1
//
this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer1.Location = new System.Drawing.Point(0, 49);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.AutoScroll = true;
this.splitContainer1.Panel1.Controls.Add(this.treeView1);
this.splitContainer1.Panel1MinSize = 340;
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.AutoScroll = true;
this.splitContainer1.Panel2.Controls.Add(this.listView1);
this.splitContainer1.Panel2MinSize = 200;//为什么这里设置成200的时候提示未处理的“System.InvalidOperationException”类型的异常出现在 System.Windows.Forms.dll 中。其他信息: SplitterDistance 必须在 Panel1MinSize 和 Width -Panel2MinSize 之间。
this.splitContainer1.Size = new System.Drawing.Size(802, 543);
this.splitContainer1.SplitterDistance = 237;
this.splitContainer1.TabIndex = 2; 展开
// splitContainer1
//
this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer1.Location = new System.Drawing.Point(0, 49);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.AutoScroll = true;
this.splitContainer1.Panel1.Controls.Add(this.treeView1);
this.splitContainer1.Panel1MinSize = 340;
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.AutoScroll = true;
this.splitContainer1.Panel2.Controls.Add(this.listView1);
this.splitContainer1.Panel2MinSize = 200;//为什么这里设置成200的时候提示未处理的“System.InvalidOperationException”类型的异常出现在 System.Windows.Forms.dll 中。其他信息: SplitterDistance 必须在 Panel1MinSize 和 Width -Panel2MinSize 之间。
this.splitContainer1.Size = new System.Drawing.Size(802, 543);
this.splitContainer1.SplitterDistance = 237;
this.splitContainer1.TabIndex = 2; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询