diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs index 8686668..52ad8aa 100644 --- a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs +++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs @@ -152,7 +152,7 @@ this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(282, 380); + this.panel1.Size = new System.Drawing.Size(282, 527); this.panel1.TabIndex = 4; // // label13 @@ -364,7 +364,7 @@ // this.splitter1.Location = new System.Drawing.Point(282, 0); this.splitter1.Name = "splitter1"; - this.splitter1.Size = new System.Drawing.Size(3, 380); + this.splitter1.Size = new System.Drawing.Size(3, 527); this.splitter1.TabIndex = 5; this.splitter1.TabStop = false; // @@ -377,13 +377,13 @@ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Location = new System.Drawing.Point(285, 0); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(392, 380); + this.panel2.Size = new System.Drawing.Size(392, 527); this.panel2.TabIndex = 6; // // SaveCharButton // this.SaveCharButton.Dock = System.Windows.Forms.DockStyle.Bottom; - this.SaveCharButton.Location = new System.Drawing.Point(0, 320); + this.SaveCharButton.Location = new System.Drawing.Point(0, 467); this.SaveCharButton.Name = "SaveCharButton"; this.SaveCharButton.Size = new System.Drawing.Size(392, 30); this.SaveCharButton.TabIndex = 3; @@ -411,7 +411,7 @@ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(0, 26); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(392, 324); + this.panel3.Size = new System.Drawing.Size(392, 471); this.panel3.TabIndex = 2; this.panel3.Visible = false; // @@ -556,7 +556,7 @@ // SaveMultButton // this.SaveMultButton.Dock = System.Windows.Forms.DockStyle.Bottom; - this.SaveMultButton.Location = new System.Drawing.Point(0, 350); + this.SaveMultButton.Location = new System.Drawing.Point(0, 497); this.SaveMultButton.Name = "SaveMultButton"; this.SaveMultButton.Size = new System.Drawing.Size(392, 30); this.SaveMultButton.TabIndex = 1; @@ -582,7 +582,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(677, 380); + this.ClientSize = new System.Drawing.Size(677, 527); this.Controls.Add(this.panel2); this.Controls.Add(this.splitter1); this.Controls.Add(this.panel1); diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs index 089cb1d..e05e108 100644 --- a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs +++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs @@ -18,7 +18,14 @@ namespace WindowsFormsApplication1 public partial class MainForm : Form { - public TextBox[] b1 = new TextBox[100]; + int y = 300; + + public Label[] l1 = new Label[100]; + public Label[] l2 = new Label[100]; + public Label[] l3 = new Label[100]; + public Button[] b1 = new Button[100]; + public Button[] b2 = new Button[100]; + PictureBox[] pic1 = new PictureBox[1000]; @@ -329,12 +336,51 @@ namespace WindowsFormsApplication1 private void button2_Click(object sender, EventArgs e) { - b1[0] = new TextBox(); - b1[0].Top = 10; - b1[0].Left = 30; - b1[0].Width = 200; + l1[0] = new Label(); + l1[0].Top = y; + l1[0].Left = 30; + l1[0].Width = 50; + l1[0].Visible = true; + l1[0].Text = "gfhcghfgh"; + this.panel1.Controls.Add(l1[0]); + + + l2[0] = new Label(); + l2[0].Top = y; + l2[0].Left = 100; + l2[0].Width = 60; + l2[0].Visible = true; + l2[0].Text = "ocphcghfgh"; + this.panel1.Controls.Add(l2[0]); + + + l3[0] = new Label(); + l3[0].Top = y; + l3[0].Left = 170; + l3[0].Width = 40; + l3[0].Visible = true; + l3[0].Text = "ocphcghfgh"; + this.panel1.Controls.Add(l3[0]); + + b1[0] = new Button(); + b1[0].Top = y; + b1[0].Left = 220; + b1[0].Width = 50; b1[0].Visible = true; this.panel1.Controls.Add(b1[0]); + + + b2[0] = new Button(); + b2[0].Top = y; + b2[0].Left = 280; + b2[0].Width = 50; + b2[0].Visible = true; + this.panel1.Controls.Add(b2[0]); + + y = y + 30; + } + private void button3_Click(object sender, EventArgs e) + { } - } +} } diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx index d2d8b5c..642c454 100644 --- a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx +++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx @@ -124,6 +124,6 @@ 153, 17 - 39 + 25 \ No newline at end of file