title: F# and Winforms
body: <p>i have a program like this</p>
  
  <pre><code>let form = new Form()
  let drawArea = new Panel(Location = new Point(200,0), Height = 600, Width = 800)
  let rectBrush = new SolidBrush(Color.Blue)
  form.Controls.Add(drawArea)
  
  drawArea.MouseClick.Add(fun args -&gt; 
      drawArea.Paint.Add(fun e -&gt; 
          e.Graphics.FillRectangle(rectBrush, args.X, args.Y, 50, 50)))
  
  Application.Run(form)
  </code></pre>
  
  <p>so when i click a blue rectangle appears. However, where are these rectangles stored? is there any way to retrive a list of all the rectangles being part of the "drawArea"?</p>
  
  <p>Otherwise, is there a way to add rectangles as child controllers to a panel or simular winform object?</p>
  
  <p>Thank you</p>