Button[] btns = new Button[3];for (int i = 0; i < 3; i++) { btns[i].Location = new Point(73 * i, 0); btns[i].Name = "btn" + i.ToString(); this.Controls.Add(btns[i]);}