Torna al Thread
butt = new Button[TABLEMIN, TABLEMIN];
for (int i = 0; i < TABLEMIN; i++)
{
for (int j = 0; j < TABLEMIN; j++)
{
butt[i, j] = new Button();
butt[i, j].Size = new Size((int)(tableLayoutPanel1.Size.Width / TABLEMIN), (int)(tableLayoutPanel1.Size.Height / TABLEMIN));
tableLayoutPanel1.Controls.Add(butt[i, j], i, j);
butt[i, j].FlatStyle = FlatStyle.Standard;
butt[i, j].AutoSize = true;
}
}
tableLayoutPanel1.Padding = new Padding(0, 0, 0, 0);
Refresh();