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();
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5