Hi Oscar,
You add a Button object to the Form's Controls collection.
Button b; // button reference
b = new Button(); // create a new button object
// and assign its reference to b
this.Controls.Add(b); // add the button to the form's control collection
The button will now be visible on the Form with the default location and
size. Beware that unless you specify a location for the button any other
button will cover the first button making it disappear.
Replace this. with any other control able to hold controls like panel,
groupbox etc if needed.
GroupBox g = new GroupBox();
this.Controls.Add(g);
Panel p = new Panel();
g.Controls.Add(p);
Button b = new Button();
p.Controls.Add(b);
This will create a Form with a GroupBox, the GroupBox will have a Panel,
and the Panel will have a Button.