title: PictureBox moving left to right to left repeatedly
body: <p>Trying to use this code so that the picturebox will move from left to right by itself automatically. The code doesn't give any errors but when I run the app, the picturebox1 just stays still and does nothing.</p>
  
  <p>I'm thinking: Timer1 properties maybe, didn't mess with anything in the timer1 properties, not sure if I'm supposed to, or maybe I have to add more code or fix it; not sure. </p>
  
  <p>(If you are curious what I'm doing in case that helps, I'm having an 'enemy' move back and forth from left to right to left to right and so on, and the 'player' has to get past it without hitting it.)</p>
  
  <pre><code>Private Sub Timer1_Timer()
      Do
          PictureBox1.Left = PictureBox1.Left - 5
          If PictureBox1.Left &lt;= 5 Then
              Do
                  PictureBox1.Left = PictureBox1.Right + 5
              Loop Until PictureBox1.Left &gt;= 1000
          End If
      Loop
  End Sub
  </code></pre>