title: Programmatically assigning Margin and/or Padding to a Label
body: <p>In trying to get some labels in a TableLayoutPanel to move from the top left of their cells to the center of the cells, I'm trying to experiment with adding padding and/or margins.</p>
  
  <p>However, nothing I've tried works. Here's the code I've tried and the results:</p>
  
  <pre><code>// Setting the padding just cuts off the bottom part of the text
  //lbl.Padding = new System.Windows.Forms.Padding(1);
  
  // How to set Margin?
  //lbl.Margin = new System.Windows.Forms.Margin(1); &lt;- This mimics "Padding" but is not recognized
  //lbl.Margin = new Thickness(6); &lt;- This is the only example I could find, but it's for WPF
  </code></pre>