title: Trying to draw on a Picture Box, but nothing appears
body: <p>I'm converting a VB6 application to VB.Net that draws on picture boxes. Naturally I read the fine manual and turn up this example <a href="http://msdn.microsoft.com/en-us/library/9dtfzwyx(v=vs.71).aspx" rel="nofollow noreferrer">here</a>. I therefore produced a little project with a form containing only a picture box and tried the following:-</p>
  <pre><code>Private Sub Picture1_paint(ByVal sender As System.Object, _
                             ByVal e As System.EventArgs) _
              Handles PictureBox1.Paint
      Dim mygraphics As Graphics
      mygraphics = PictureBox1.CreateGraphics
      Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 1)
      mygraphics.DrawEllipse(pen, 0, 0, 100, 100)
      pen.Dispose
  End Sub
  </code></pre>
  <p>just like it says. But on running the application, the box turns up blank. Searching for help turned up a suggestion <a href="https://web.archive.org/web/20131226033137/http://bobpowell.net/picturebox.aspx" rel="nofollow noreferrer">here</a> that I should use a <code>Frame</code> instead, but the result was the same. I have checked that I'm not drawing in the background colour, and that the function is actually invoked.</p>
  <p>What have I overlooked?</p>