【发布时间】:2023-03-24 20:14:02
【问题描述】:
我想创建一个按钮来创建其他按钮,并且我希望它能够在屏幕上创建无限按钮 我试过了
Button button = new Button();
button.Location = new Point(100,100);
button.Text = "IT Woreked";
button.Size = new Size(26,26);
button.Visible = true;
Application.Restart();
this.Controls.Add(button);
我相信它确实添加了它,但它没有显示出来 那么如何将按钮添加到屏幕上
【问题讨论】:
-
Application.Restart();???
标签: c# visual-studio winforms button