title: How do you use a C# XNA While Loop with Visual Studio 2010?
body: <p>I'm making a program in C#, and I am trying to simply have a turtle move across the screen. I tried making a while loop:</p>
  
  <pre><code>while (stop &lt;= 60)
  {
     turtleRect.X -= 1;
     stop++;
  }
  </code></pre>
  
  <p>What is supposed to happen is the turtle moves slowly across the screen. It works, except for one thing. When I run the program, the while loop finishes before the program opens. It waits until the while loop is done to open. When it opens, the turtle is already 60 pixels to the left. Is there a setting to make the program open, then run? Any help is greatly appreciated.</p>