title: Draw a rectangle on mouse click
body: <p>Can I draw a rectangle with mouseClick? My code is not working so far. Can you help me?</p>
  
  <pre><code>private void panel1_MouseClick(object sender, MouseEventArgs e)
  {
      Graphics g = this.CreateGraphics();
      Pen pen = new Pen(Color.Black, 2);
  
      g.DrawRectangle(pen, 100,100, 100, 200);
  }
  </code></pre>