title: How to (create and) add components to a Table Layout?
body: <p>I am in the process of creating a chess game in <code>C#</code>. Coming from a <code>Java-Swing</code> environment I made a standard function that creates a field 8x8 and gives it basic attributes. </p>
  
  <pre><code>     Board = new Label[8, 8];
              for (int i = 0; i &lt; 8; i++)
              {
  
                  for (int j = 0; j &lt; 8; j++)
                  {
                      Board[i, j] = new System.Windows.Forms.Label();
                      Board[i, j].Location = new Point(i * 50, j * 50);
                      Board[i, j].Size = new System.Drawing.Size(50, 50);
                      Board[i, j].Visible = true;
  
  
                      if ((i + j) % 2 == 0) // Color decision
                      {
                          Board[i, j].BackColor = Color.Black;
                      }
  
                      else {
                          Board[i, j].BackColor = Color.White;
                      }
  
                      this.Controls.Add(Board[i, j]);
                  }
              }
  </code></pre>
  
  <p>Now there are two additional arrays which hold the abc's and 123's of the outer edge of the chess board (so that you can enter a move like - <strong>"Knight to E3"</strong>). </p>
  
  <p>I've managed to add all components onto the screen but they currently overlap each other. I was thinking of creating a 9x9 "<code>grid-layout</code>" and adding all components to it. </p>
  
  <p>From <code>Java</code> I am used to simple commands like: </p>
  
  <pre><code>    GridLayout gl = new Gridlayout(3,3);
      this.setLayout(gl);
  </code></pre>
  
  <p>And then all added elements get automatically put into the grid. 
  After many hours of research, I cannot find anything similar in <code>C#</code>. Playing with the <code>TableLayout</code> only causes more problems that solutions. </p>
  
  <p>My question is how to implement a (<code>grid</code>) <code>layout</code> and add all my labels to it?
  I apologize in advanced for not posting any of my Layout code, but like I said it is just a mess and does nothing that it should. </p>
  
  <p>Thank you :)</p>