title: How to change the location of a picture box in VB 2010 using the arrow or wasd keys?
body: <p>I only have access to the internet at school, so the filters get in the way of any real research. I'm currently coding an rpg for a school project but it's difficult to get the avatar to move on a map. Here's my pathetic code so far:</p>
  
  <pre><code>Public Class Map1
  
      Private Sub USER_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
          User.Top = User.Top - 1
      End Sub
  
      Private Sub USER_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
          User.Top = User.Bottom + 1
          'User.Location.X = 200
      End Sub
  End Class
  </code></pre>
  
  <p>I have the following problems with it:
  User.location.x = 200  had syntax errors when I deleted the x and when I didn't.
  The player also had to continually press the keys to move.</p>
  
  <p>both I do not know how to correct.
  Any help at all is greatly appreciated as it's for my final grade.</p>