Hi !
I've got layout like 1st file.
i want to add a radtextbox or textbox in a "LayaoutControlGroupItem4" like screen 2. this section is an observation zone with multiline text and button to valid.
Set to multiline (screen 3), radtextbox was small. and grow with size
Set Dock to Fill (screen4) but control move outside his zone.
and if i run project and set my form to all of my screen...
Something was strange.
Thanks for your help.
Here my Form2.Designer.cs, no code in form2.cs at this time
001.
partial
class
Form2
002.
{
003.
/// <summary>
004.
/// Required designer variable.
005.
/// </summary>
006.
private
System.ComponentModel.IContainer components =
null
;
007.
008.
/// <summary>
009.
/// Clean up any resources being used.
010.
/// </summary>
011.
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
012.
protected
override
void
Dispose(
bool
disposing)
013.
{
014.
if
(disposing && (components !=
null
))
015.
{
016.
components.Dispose();
017.
}
018.
base
.Dispose(disposing);
019.
}
020.
021.
#region Windows Form Designer generated code
022.
023.
/// <summary>
024.
/// Required method for Designer support - do not modify
025.
/// the contents of this method with the code editor.
026.
/// </summary>
027.
private
void
InitializeComponent()
028.
{
029.
Telerik.WinControls.UI.TableViewDefinition tableViewDefinition1 =
new
Telerik.WinControls.UI.TableViewDefinition();
030.
this
.radLayoutControl1 =
new
Telerik.WinControls.UI.RadLayoutControl();
031.
this
.radGridView1 =
new
Telerik.WinControls.UI.RadGridView();
032.
this
.textBox1 =
new
System.Windows.Forms.TextBox();
033.
this
.button1 =
new
System.Windows.Forms.Button();
034.
this
.layoutControlSeparatorItem1 =
new
Telerik.WinControls.UI.LayoutControlSeparatorItem();
035.
this
.layoutControlLabelItem1 =
new
Telerik.WinControls.UI.LayoutControlLabelItem();
036.
this
.layoutControlLabelItem2 =
new
Telerik.WinControls.UI.LayoutControlLabelItem();
037.
this
.layoutControlGroupItem1 =
new
Telerik.WinControls.UI.LayoutControlGroupItem();
038.
this
.layoutControlGroupItem2 =
new
Telerik.WinControls.UI.LayoutControlGroupItem();
039.
this
.layoutControlItem1 =
new
Telerik.WinControls.UI.LayoutControlItem();
040.
this
.layoutControlGroupItem3 =
new
Telerik.WinControls.UI.LayoutControlGroupItem();
041.
this
.layoutControlLabelItem4 =
new
Telerik.WinControls.UI.LayoutControlLabelItem();
042.
this
.layoutControlSplitterItem1 =
new
Telerik.WinControls.UI.LayoutControlSplitterItem();
043.
this
.layoutControlGroupItem4 =
new
Telerik.WinControls.UI.LayoutControlGroupItem();
044.
this
.layoutControlItem2 =
new
Telerik.WinControls.UI.LayoutControlItem();
045.
this
.layoutControlItem3 =
new
Telerik.WinControls.UI.LayoutControlItem();
046.
this
.layoutControlLabelItem3 =
new
Telerik.WinControls.UI.LayoutControlLabelItem();
047.
this
.layoutControlLabelItem5 =
new
Telerik.WinControls.UI.LayoutControlLabelItem();
048.
((System.ComponentModel.ISupportInitialize)(
this
.radLayoutControl1)).BeginInit();
049.
this
.radLayoutControl1.SuspendLayout();
050.
((System.ComponentModel.ISupportInitialize)(
this
.radGridView1)).BeginInit();
051.
((System.ComponentModel.ISupportInitialize)(
this
.radGridView1.MasterTemplate)).BeginInit();
052.
this
.SuspendLayout();
053.
//
054.
// radLayoutControl1
055.
//
056.
this
.radLayoutControl1.Controls.Add(
this
.radGridView1);
057.
this
.radLayoutControl1.Controls.Add(
this
.textBox1);
058.
this
.radLayoutControl1.Controls.Add(
this
.button1);
059.
this
.radLayoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
060.
this
.radLayoutControl1.Items.AddRange(
new
Telerik.WinControls.RadItem[] {
061.
this
.layoutControlSeparatorItem1,
062.
this
.layoutControlLabelItem1,
063.
this
.layoutControlLabelItem2,
064.
this
.layoutControlGroupItem1,
065.
this
.layoutControlGroupItem2,
066.
this
.layoutControlGroupItem3,
067.
this
.layoutControlLabelItem4,
068.
this
.layoutControlSplitterItem1,
069.
this
.layoutControlGroupItem4,
070.
this
.layoutControlLabelItem3,
071.
this
.layoutControlLabelItem5});
072.
this
.radLayoutControl1.Location =
new
System.Drawing.Point(0, 0);
073.
this
.radLayoutControl1.Name =
"radLayoutControl1"
;
074.
this
.radLayoutControl1.Size =
new
System.Drawing.Size(800, 450);
075.
this
.radLayoutControl1.TabIndex = 0;
076.
//
077.
// radGridView1
078.
//
079.
this
.radGridView1.Location =
new
System.Drawing.Point(7, 350);
080.
//
081.
//
082.
//
083.
this
.radGridView1.MasterTemplate.ViewDefinition = tableViewDefinition1;
084.
this
.radGridView1.Name =
"radGridView1"
;
085.
this
.radGridView1.Size =
new
System.Drawing.Size(403, 93);
086.
this
.radGridView1.TabIndex = 3;
087.
//
088.
// textBox1
089.
//
090.
this
.textBox1.Location =
new
System.Drawing.Point(428, 258);
091.
this
.textBox1.Multiline =
true
;
092.
this
.textBox1.Name =
"textBox1"
;
093.
this
.textBox1.Size =
new
System.Drawing.Size(365, 142);
094.
this
.textBox1.TabIndex = 4;
095.
//
096.
// button1
097.
//
098.
this
.button1.Location =
new
System.Drawing.Point(428, 412);
099.
this
.button1.Name =
"button1"
;
100.
this
.button1.Size =
new
System.Drawing.Size(365, 27);
101.
this
.button1.TabIndex = 5;
102.
this
.button1.Text =
"button1"
;
103.
this
.button1.UseVisualStyleBackColor =
true
;
104.
//
105.
// layoutControlSeparatorItem1
106.
//
107.
this
.layoutControlSeparatorItem1.Bounds =
new
System.Drawing.Rectangle(421, 446, 379, 4);
108.
this
.layoutControlSeparatorItem1.Name =
"layoutControlSeparatorItem1"
;
109.
//
110.
// layoutControlLabelItem1
111.
//
112.
this
.layoutControlLabelItem1.Bounds =
new
System.Drawing.Rectangle(594, 26, 206, 200);
113.
this
.layoutControlLabelItem1.DrawText =
false
;
114.
this
.layoutControlLabelItem1.Name =
"layoutControlLabelItem1"
;
115.
//
116.
// layoutControlLabelItem2
117.
//
118.
this
.layoutControlLabelItem2.Bounds =
new
System.Drawing.Rectangle(0, 26, 209, 85);
119.
this
.layoutControlLabelItem2.DrawText =
false
;
120.
this
.layoutControlLabelItem2.Name =
"layoutControlLabelItem2"
;
121.
//
122.
// layoutControlGroupItem1
123.
//
124.
this
.layoutControlGroupItem1.Bounds =
new
System.Drawing.Rectangle(0, 0, 800, 26);
125.
this
.layoutControlGroupItem1.Name =
"layoutControlGroupItem1"
;
126.
this
.layoutControlGroupItem1.Text =
"layoutControlGroupItem1"
;
127.
//
128.
// layoutControlGroupItem2
129.
//
130.
this
.layoutControlGroupItem2.Bounds =
new
System.Drawing.Rectangle(0, 323, 417, 127);
131.
this
.layoutControlGroupItem2.Items.AddRange(
new
Telerik.WinControls.RadItem[] {
132.
this
.layoutControlItem1});
133.
this
.layoutControlGroupItem2.Name =
"layoutControlGroupItem2"
;
134.
this
.layoutControlGroupItem2.Text =
"layoutControlGroupItem2"
;
135.
//
136.
// layoutControlItem1
137.
//
138.
this
.layoutControlItem1.AssociatedControl =
this
.radGridView1;
139.
this
.layoutControlItem1.Bounds =
new
System.Drawing.Rectangle(0, 0, 409, 99);
140.
this
.layoutControlItem1.Name =
"layoutControlItem1"
;
141.
this
.layoutControlItem1.Text =
"layoutControlItem1"
;
142.
//
143.
// layoutControlGroupItem3
144.
//
145.
this
.layoutControlGroupItem3.Bounds =
new
System.Drawing.Rectangle(0, 196, 417, 127);
146.
this
.layoutControlGroupItem3.Name =
"layoutControlGroupItem3"
;
147.
this
.layoutControlGroupItem3.Text =
"layoutControlGroupItem3"
;
148.
//
149.
// layoutControlLabelItem4
150.
//
151.
this
.layoutControlLabelItem4.Bounds =
new
System.Drawing.Rectangle(209, 26, 208, 170);
152.
this
.layoutControlLabelItem4.DrawText =
false
;
153.
this
.layoutControlLabelItem4.Name =
"layoutControlLabelItem4"
;
154.
//
155.
// layoutControlSplitterItem1
156.
//
157.
this
.layoutControlSplitterItem1.Bounds =
new
System.Drawing.Rectangle(417, 26, 4, 424);
158.
this
.layoutControlSplitterItem1.Name =
"layoutControlSplitterItem1"
;
159.
//
160.
// layoutControlGroupItem4
161.
//
162.
this
.layoutControlGroupItem4.Bounds =
new
System.Drawing.Rectangle(421, 226, 379, 220);
163.
this
.layoutControlGroupItem4.Items.AddRange(
new
Telerik.WinControls.RadItem[] {
164.
this
.layoutControlItem2,
165.
this
.layoutControlItem3});
166.
this
.layoutControlGroupItem4.Name =
"layoutControlGroupItem4"
;
167.
this
.layoutControlGroupItem4.Text =
"layoutControlGroupItem4"
;
168.
//
169.
// layoutControlItem2
170.
//
171.
this
.layoutControlItem2.AssociatedControl =
this
.textBox1;
172.
this
.layoutControlItem2.Bounds =
new
System.Drawing.Rectangle(0, 0, 371, 159);
173.
this
.layoutControlItem2.ControlVerticalAlignment = Telerik.WinControls.UI.RadVerticalAlignment.Center;
174.
this
.layoutControlItem2.Name =
"layoutControlItem2"
;
175.
this
.layoutControlItem2.Text =
"layoutControlItem2"
;
176.
//
177.
// layoutControlItem3
178.
//
179.
this
.layoutControlItem3.AssociatedControl =
this
.button1;
180.
this
.layoutControlItem3.Bounds =
new
System.Drawing.Rectangle(0, 159, 371, 33);
181.
this
.layoutControlItem3.Name =
"layoutControlItem3"
;
182.
this
.layoutControlItem3.Text =
"layoutControlItem3"
;
183.
//
184.
// layoutControlLabelItem3
185.
//
186.
this
.layoutControlLabelItem3.Bounds =
new
System.Drawing.Rectangle(421, 26, 173, 200);
187.
this
.layoutControlLabelItem3.DrawText =
false
;
188.
this
.layoutControlLabelItem3.Name =
"layoutControlLabelItem3"
;
189.
//
190.
// layoutControlLabelItem5
191.
//
192.
this
.layoutControlLabelItem5.Bounds =
new
System.Drawing.Rectangle(0, 111, 209, 85);
193.
this
.layoutControlLabelItem5.DrawText =
false
;
194.
this
.layoutControlLabelItem5.Name =
"layoutControlLabelItem5"
;
195.
//
196.
// Form2
197.
//
198.
this
.AutoScaleDimensions =
new
System.Drawing.SizeF(6F, 13F);
199.
this
.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
200.
this
.ClientSize =
new
System.Drawing.Size(800, 450);
201.
this
.Controls.Add(
this
.radLayoutControl1);
202.
this
.Name =
"Form2"
;
203.
this
.Text =
"Form2"
;
204.
((System.ComponentModel.ISupportInitialize)(
this
.radLayoutControl1)).EndInit();
205.
this
.radLayoutControl1.ResumeLayout(
false
);
206.
this
.radLayoutControl1.PerformLayout();
207.
((System.ComponentModel.ISupportInitialize)(
this
.radGridView1.MasterTemplate)).EndInit();
208.
((System.ComponentModel.ISupportInitialize)(
this
.radGridView1)).EndInit();
209.
this
.ResumeLayout(
false
);
210.
211.
}
212.
213.
#endregion
214.
215.
private
Telerik.WinControls.UI.RadLayoutControl radLayoutControl1;
216.
private
Telerik.WinControls.UI.LayoutControlSeparatorItem layoutControlSeparatorItem1;
217.
private
Telerik.WinControls.UI.LayoutControlLabelItem layoutControlLabelItem1;
218.
private
Telerik.WinControls.UI.LayoutControlLabelItem layoutControlLabelItem2;
219.
private
Telerik.WinControls.UI.LayoutControlGroupItem layoutControlGroupItem1;
220.
private
Telerik.WinControls.UI.LayoutControlGroupItem layoutControlGroupItem2;
221.
private
Telerik.WinControls.UI.LayoutControlGroupItem layoutControlGroupItem3;
222.
private
Telerik.WinControls.UI.LayoutControlLabelItem layoutControlLabelItem4;
223.
private
Telerik.WinControls.UI.LayoutControlSplitterItem layoutControlSplitterItem1;
224.
private
Telerik.WinControls.UI.LayoutControlGroupItem layoutControlGroupItem4;
225.
private
Telerik.WinControls.UI.LayoutControlLabelItem layoutControlLabelItem3;
226.
private
Telerik.WinControls.UI.LayoutControlLabelItem layoutControlLabelItem5;
227.
private
Telerik.WinControls.UI.RadGridView radGridView1;
228.
private
System.Windows.Forms.TextBox textBox1;
229.
private
System.Windows.Forms.Button button1;
230.
private
Telerik.WinControls.UI.LayoutControlItem layoutControlItem1;
231.
private
Telerik.WinControls.UI.LayoutControlItem layoutControlItem2;
232.
private
Telerik.WinControls.UI.LayoutControlItem layoutControlItem3;
233.
}