button btn = new Button(); btn.Location = new System.Drawing.Point(this.width-10, this.height-10); this.controls.add(btn); btn.BringToFront();
Button btnOlder = new Button();
btnOlder.Location = new System.Drawing.Point(X-Axis, Y-Axis);
Button btn = new Button(); btn.Name = "btn_1"; btn.Top = 50;//specify the top position btn.Left = 50; btn.Width = 200; btn.Height = 200; //btn.Location = new System.Drawing.Point(50, 50); //alternative solution btn.Text = "Button Created Dynamically" this.Controls.Add(btn); btn.BringToFront();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)