title: Can't draw with CreateGraphics
body: <p>I just have a Panel and want to draw on it. Without the use of its Paint event. So i tried this and it doesn't work.</p>
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
      Graphics g = panel1.CreateGraphics();
      g.DrawRectangle(Pens.Black, 0, 0, 10, 10);
  }
  </code></pre>
  <p>If someone could provide me with explonation and example code that would be nice.</p>