title: Is there a way to remove all controls from a row in TableLayoutPanel?
body: <p>I generate controls for a TableLayoutPanel dynamically. I have a delete button in each row. When I click that, that row has to be removed.</p>
  
  <pre><code>    Dim removeBtn As New Button
      AddHandler removeBtn.Click, AddressOf DeleteRow
      tlp.Controls.Add(removeBtn, 5, rowCount)
  </code></pre>
  
  <p>I have not shown the code to add text boxes which are similar to above. I can get the row number of the clicked button. Using this, how to remove all controls from this row.</p>
  
  <pre><code>Private Sub DeleteRow(ByVal sender As System.Object, ByVal e As System.EventArgs)
     Dim currentRow As Integer = CType(CType(sender, Button).Parent, TableLayoutPanel).GetRow(CType(sender, Button))
     'Using this currentRow, how to delete this Row
  End Sub
  </code></pre>