title: Cannot remove spacing between controls in TableLayoutPanel?
body: <p>There's some spacing between the Buttons I add to my <code>TableLayoutPanel</code>. I removed the border in the Button and set the Margin and Padding to 0 in the Panel. But I continue getting that spacing.</p>
  
  <p>tableLayoutPanel.RowCount is set to 8 and the <code>Rows</code> collection I've added 8 rows with <code>Size Type Absolute</code>.</p>
  
  <p>Am I missing something? Here's the code:</p>
  
  <pre><code>    private void FillSelectLayout()
      {
          tableLayoutPanelSelect.Controls.Clear();
          tableLayoutPanelSelect.RowStyles.Clear();
  
          tableLayoutPanelSelect.RowCount = 8;
  
          for (int i = 0; i &lt; 8; i++)
          {
              Button buttonSelector = new Button();
              buttonSelector.Height = 64;
              buttonSelector.Width = 100;
              buttonSelector.FlatStyle = FlatStyle.Flat;
              buttonSelector.FlatAppearance.BorderSize = 0;
              buttonSelector.BackColor = Color.Yellow;
              tableLayoutPanelSelect.Controls.Add(buttonSelector, 0, i);
          }
      }
  </code></pre>
  
  <p>Here's how it's displayed:</p>
  
  <p><a href="https://i.stack.imgur.com/hs9oZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hs9oZ.png" alt="enter image description here"></a></p>