Button btn = new Button();btn.Size = new Size(50, 30);btn.Location = new Point(100, 100);btn.Name = "btn";btn.Text = "Button";this.Controls.Add(btn);