Button b = new Button();//创建一个新的按钮
b.Text = "test";
//添加到panel1中
panel1.Controls.Add(b);
c# 编程添加控件
关注
打赏
Button b = new Button();//创建一个新的按钮
b.Text = "test";
//添加到panel1中
panel1.Controls.Add(b);
微信扫码登录