title: C# how to slide a panel
body: <p>This code is just changing location, not sliding.</p>
  
  <p>I am using this at the moment: </p>
  
  <pre><code>for (int i = 740; i == 740; i++)
  {
     panel2.Location = new Point(panel2.Location.X - i, panel2.Location.Y);      
  }
  </code></pre>
  
  <p>How can I slide the panel slowly?</p>