private void Form1_Load(object sender, EventArgs e)
{
panel0 = new Panel();
panel0.Location = new System.Drawing.Point(0, 0);
panel0.Size = this.ClientRectangle.Size;
this.Controls.Add(panel0);
Size mSize = new System.Drawing.Size(panel0.Width / 2, panel0.Height / 2);
panel1 = new Panel();
panel1.Location = new System.Drawing.Point(0, 0);
panel1.Size = mSize;
this.panel0.Controls.Add(panel1);
panel2 = new Panel();
panel2.Location = new System.Drawing.Point(panel0.Width / 2, 0);
panel2.Size = mSize;
this.panel0.Controls.Add(panel2);
panel3 = new Panel();
panel3.Location = new System.Drawing.Point(0, panel0.Height / 2);
panel3.Size = mSize;
this.panel0.Controls.Add(panel3);
panel4 = new Panel();
panel4.Location = new System.Drawing.Point(panel0.Width / 2, panel0.Height / 2);
panel4.Size = mSize;
this.panel0.Controls.Add(panel4);
ptb1 = new PictureBox();
ptb1.Location = this.panel1.Location;
ptb1.Size = new System.Drawing.Size(this.panel1.Width, this.panel1.Height / 2);
ptb1.Image = Image.FromFile(@"E:\Sunset.jpg");
this.panel1.Controls.Add(ptb1);
Label lable1;
lable1 = new Label();
lable1.Location = new System.Drawing.Point(this.panel1.Width/3, this.panel1.Height / 2);
lable1.Text = "姓名:张三";
this.panel1.Controls.Add(lable1);
lable1 = new Label();
lable1.Location = new System.Drawing.Point(this.panel1.Width / 3, this.panel1.Height / 2 + 30);
lable1.Text = "性别:男";
this.panel1.Controls.Add(lable1);
//....