日期:2014-05-19  浏览次数:20862 次

怎么动态添加同一控件多次?? ?
谢谢...

------解决方案--------------------
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++;
}