求解惑呀!关于单击按钮生成新的按钮,怎么实现
											在Form1中建立一个按钮,和一个textbox。当单击按钮时在下方出现一个按钮,并且在textbox中输出该生成的按钮的test。										
					
	 2011-03-19 12:53
	    2011-03-19 12:53
   2011-03-19 16:07
	    2011-03-19 16:07
   程序代码:
程序代码:        int i = 0;
        private void button1_Click(object sender, EventArgs e)
        {
            Button b = new Button();
            i++;
            b.Location = new Point(button1.Location.X, button1.Location.Y + i * button1.Height);
            b.Text = "button" + i;
            textBox1.Text = b.Text;
            this.Controls.Add(b);
        }										
					
	
 2011-03-19 18:16
	    2011-03-19 18:16
   2011-03-20 15:05
	    2011-03-20 15:05
   2011-03-21 10:41
	    2011-03-21 10:41