title: How to remove a Specific Button from Flow Layout Panel
body: <p>I am creating dynamic buttons, each has a unique Tag, each tag is then sent to a list box. i want to be able to select the tag from the list box and click a button to remove the button with that specific tag i tried making this code but no go....</p>
  
  <pre><code>Private Sub cmdRemove_Click(sender As Object, e As EventArgs) Handles cmdRemove.Click
      Try
          Dim curItem As String = RmvList.SelectedItem.ToString()
          MsgBox(curItem)
          For Each Button As System.Windows.Forms.Control In Main.FloLay.Controls
              If Button.Tag = curItem Then
                  Main.FloLay.Controls.RemoveAt(CurItem)
              End If
          Next
      Catch ex1 As Exception
  
      End Try
  End Sub
  </code></pre>
  
  <p>How can i Achieve this Feat? Thank you In Advance.</p>