Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys
SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize.


can any one help me in this error...?
MIDL
#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

MIDL
#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
Posted
Updated 28-Sep-10 5:01am
v2
Comments
OriginalGriff 28-Sep-10 10:39am    
Unless you give us some information, no, we can't help you...
Are we supposed to read your mind? Or just hack into your computer?

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900