private void Form2_Load(object sender, EventArgs e)
{
Button[] matrix = new Button[4];
Button b1 = new Button();
b1.Text = "button1";
matrix[0] = b1;
Button b2 = new Button();
b2.Text = "button2";
b2.Location = new Point(b1.Size.Width, 0);
matrix[1] = b2;
Button b3 = new Button();
b3.Text = "button3";
b3.Location = new Point(0, b1.Height);
matrix[2] = b3;
Button b4 = new Button();
b4.Text = "button4";
b4.Location = new Point(b3.Width, b1.Height);
matrix[3] = b4;
this.Controls.AddRange(matrix);
}
http://blog.csdn.net/zx13525079024