title: How to draw a rectangle in Compact Edtion?
body: <p>I am trying to draw a rectangle on a windows mobile phone.</p>
  
  <ol>
  <li>Draw the rectangle</li>
  <li>Fill the rectangle with a color</li>
  <li>Draw it on to the phone.</li>
  <li>Give it a event handler that when a user clicks something happens.</li>
  </ol>
  
  <p>I am unsure how do steps 2, 3 and 4. I see that there is a drawing class called rectangle but I don't know how to get it on the form.</p>
  
  <p>I then don't know how I could give it a event handler. I am planning to dynamically make like 12 of these so I have to somehow tell which one is clicked and the color it contains in it.</p>
  
  <p>Thanks</p>
  
  <p>Edit so far I have this but I don't see it on my form.</p>
  
  <pre><code> Graphics surface = this.CreateGraphics();
      Pen pen = new Pen(Color.Black, 1f);
      System.Drawing.Rectangle test = new Rectangle(0, 0, 500, 500);
      surface.DrawRectangle(pen, test);
  </code></pre>