Generated WinForm form window controls

1: The Mode button controls

Button button = new Button();
button.Size = new Size(80, 80);
button.Location = new Point(10, 10);
button.Text = "aa";
this.Controls.Add(button);

Note: generating a control window to be added to control them, which implementation code his.Controls.Add (button);

Guess you like

Origin www.cnblogs.com/clhxxlcj/p/10935664.html