谢谢...

解决方案 »

  1.   

    for (int i = 0; i < 10; i++)
    {
        Button vButton = new Button();
        vButton.Parent = this;
        vButton.Text = "Zswang" + i;
        vButton.Top = vButton.Height * i;
        //vButton.Click += new EventHandler(button_Click);
    }
      

  2.   

    楼上还要一句Add到control集合里
      

  3.   

    int ButtonIndex = 0;
    private void button1_Click(object sender, EventArgs e)
    {
        Button vButton = new Button();
        vButton.Parent = this;
        vButton.Text = "Zswang" + ButtonIndex;
        vButton.Top = vButton.Height * ButtonIndex;
        ButtonIndex++;
    }