Button b = new Button();//创建一个新的按钮
b.Text = "test";
//添加到panel1中
panel1.Controls.Add(b);