title: During runtime create and move picturebox
body: <p>I am using VB 2010</p>
  
  <p>I am trying to create a program in which during runtime I can create a new picturebox with mousedown and then have the ability to move each picturebox created. I feel as if I am close, could anyone help me out?</p>
  
  <pre><code>Private Sub PictureBox2_Mousedown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox2.Click
      Dim newPictureBox As New PictureBox
  
      newPictureBox.Image = Image.FromFile("C:\Users\Blair\Desktop\table8.jpg")
      newPictureBox.Visible = True
      newPictureBox.Top = 0
      newPictureBox.Width = 200
      newPictureBox.Height = 200
      newPictureBox.Left = 100
      newPictureBox.BringToFront()
      newPictureBox.SizeMode = PictureBoxSizeMode.StretchImage
  
      If IsDragging Then
          Dim EndPoint As Point = newPictureBox.PointToScreen(New Point(e.X, e.Y))
          IsClick = False
          newPictureBox.Left += (EndPoint.X - StartPoint.X)
          newPictureBox.Top += (EndPoint.Y - StartPoint.Y)
          StartPoint = EndPoint
          LastPoint = EndPoint
      End If
  
  
      'add control to form
      Controls.Add(newPictureBox)
  
  End Sub
  </code></pre>
  
  <p>ISSUE: The picturebox populates but it does not have the ability to move/drag on mousedown</p>