61
Off-Topic / Re: Simplest way to detect solidity using Windows Form Labels...in an array
« on: 2010-03-01, 04:19:22 PM »
this is the code for making the tiles.
wait, did i mention that this is being done on a Windows Form?
Code: [Select]
public Form1()
{
InitializeComponent();
for (int Row = 0; Row < Gh; Row++) // draws grid
{
for (int Col = 0; Col < Gw; Col++)
{
Grid[Row, Col] = new Label();
Grid[Row, Col].Size = new Size(19, 19);
Grid[Row, Col].Location = new Point(50 + Col * 20, 50 + Row * 20);
Grid[Row, Col].BackColor = Color.Aqua;
Grid[Row, Col].BorderStyle = BorderStyle.FixedSingle;
Controls.Add(Grid[Row, Col]);
}
}
}
wait, did i mention that this is being done on a Windows Form?