title: How to add a rectange shape to a windows form and display it?
body: <p>I created a rectangle shape and tried to show it at my form like this</p>
  
  <pre><code>Imports Microsoft.VisualBasic.PowerPacks
  Public Class frmBoard
  
      Dim baseDice As RectangleShape
  
      Private Sub frmBoard_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          baseDice.CornerRadius = 5
          baseDice.Height = 50
          baseDice.Width = 50
          baseDice.BackColor = Color.Blue
  
          Me.components.Add(baseDice)
  
      End Sub
  End Class
  </code></pre>
  
  <p>This didn't work. I missed something, but I dont know what...</p>
  
  <h2>Updated Code, after @Jay Riggs answer</h2>
  
  <pre><code>Imports Microsoft.VisualBasic.PowerPacks
  Public Class frmBoard
  
      Dim baseDice As RectangleShape
      Dim shapeContainer As ShapeContainer
  
      Private Sub frmBoard_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          shapeContainer.Parent = Me
          baseDice.Parent = shapeContainer
          baseDice.CornerRadius = 5
          baseDice.Height = 50
          baseDice.Width = 50
          baseDice.BackColor = Color.Blue
          baseDice.Left = 50
          baseDice.Top = 50
          'Me.components.Add(baseDice)
  
  
  
      End Sub
  End Class
  </code></pre>
  
  <p>This also didn't work</p>