title: More Fluent Image Movement
body: <p>So I'm messing around, getting a hang of things and I'm making a picture box move, which I have done. However could someone show me how to make the movement more fluent but not slow it down so much? </p>
  
  <p>Code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace meh
  {
      public partial class Form1 : Form
      {
          PictureBox Test = new PictureBox();
          public Form1()
          {
              InitializeComponent();
              FormBorderStyle = FormBorderStyle.None;
              WindowState = FormWindowState.Maximized;
  
  
             Test.Image = Properties.Resources.PlatinumGrass;
              Test.Location = new Point(0, 0);
              Test.Width = 32;
              Test.Height = 32;
              this.Controls.Add(Test);
              KeyDown += new KeyEventHandler(Form1_KeyDown);
  
  
          }
  
          private void Form1_KeyDown(object sender, KeyEventArgs e)
          {
              int x = Test.Location.X;
              int y = Test.Location.Y;
              int xmax = Screen.PrimaryScreen.Bounds.Width - 32;
              int ymax = Screen.PrimaryScreen.Bounds.Height - 32;
              if (e.KeyCode == Keys.Right &amp;&amp; x &lt; xmax ) x += 20;
              if (e.KeyCode == Keys.Left &amp;&amp; x &gt; 0) x -= 20;
              if (e.KeyCode == Keys.Up &amp;&amp; y &gt; 0) y -= 20;
              if (e.KeyCode == Keys.Down &amp;&amp; y &lt; ymax) y += 20;
  
              Test.Location = new Point(x, y);
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>