Joke Collection Website - Blessing messages - How to dynamically add controls and design the layout of controls in C# WinForm

How to dynamically add controls and design the layout of controls in C# WinForm

Like buttons

button BTN = new button(); //Initialize the control

Btn.size = new size (100,100); //Set the size

Btn.location = new location (50,100); //Set the coordinates

BTN . text = " Button 1 "; //Set the text

this . controls . add(BTN); //Add to the form

That's about it.