title: How to draw a line on panel? It is not showing up
body: <p>I have a <code>Panel</code> called <code>panel1</code> and I am trying to draw a line on my <code>panel1</code> using this code:</p>
  
  <pre><code>var g = panel1.CreateGraphics();
  var p = new Pen(Color.Black, 3);
  
  var point1 = new Point(234,118);
  var point2 = new Point(293,228);
  
  g.DrawLine(p, point1, point2);
  </code></pre>
  
  <p>But nothing is showing up. Any ideas? This is in a windows form.  </p>