int iIndex;
Button[] btns = new Button[3];
for (iIndex = 1; iIndex <= 2; iIndex++)
{
btns[iIndex] = new Button();
btns[iIndex].Left = button1.Left;
btns[iIndex].Top = button1.Top + 100;
btns[iIndex].Visible = true;
this.Controls.Add(btns[iIndex]);
}
供大家学习之用,如有更好的,请多多指教!!!