c# 编程添加控件时间:2025-03-14 17:05:19Button b = new Button();//创建一个新的按钮 b.Text = "test"; //添加到panel1中 panel1.Controls.Add(b);