Button b = new Button();//创建一个新的按钮
b.Text = "test";
//添加到panel1中
panel1.Controls.Add(b);
转载于:https://www.cnblogs.com/jerry1999/p/3677332.html
Button b = new Button();//创建一个新的按钮
b.Text = "test";
//添加到panel1中
panel1.Controls.Add(b);
转载于:https://www.cnblogs.com/jerry1999/p/3677332.html