title: Make and change TableLayoutPanel at runtime in WinForms
body: <p>I would like to know how to make and change a TableLayoutPanel at runtime in VB.NET, WinForms.</p>
  
  <p>I've had a look at the <a href="http://msdn.microsoft.com/en-GB/library/system.windows.forms.tablelayoutpanel.aspx" rel="nofollow">MSDN documentation</a> but I can't seem to understand how to vary the number of columns/rows (ie create new ones) nor how to change the values of any of the cells.</p>
  
  <p>My aim is to have a 4x4 grid that contains 16 labels, whose text comes from a multi-dimensional (4x4) integer array.</p>
  
  <p>My current code is:</p>
  
  <pre><code>Dim table As New TableLayoutPanel
  table.ColumnCount = 4
  table.RowCount = 4
  table.RowStyles.Add(New RowStyle(SizeType.Absolute, 8.0F))
  </code></pre>
  
  <p>This is based off the MSDN examples, but I'm not sure how to use the <code>RowStyles.Add(</code>several arguments<code>)</code> method. Can anyone explain it?</p>