Try:
for (int i = 0; i < 8; i++)
{
TextBox tb = new TextBox();
Controls.Add(tb);
}
Button but = new Button();
Controls.Add(but);
You will have to set the Location, Text and size of the various controls yourself, but that is up to you - I don't know how you want to arrange them.