title: Visual Basic Loop and Display one line at a time
body: <p>I'm using visual studios 2008, VB9 and I am trying to write an app that basically performs calculations on a set of data input by a user. During the calculations, I want to display the data at each step, and have it retained in the display area on the GUI (not overwritten by the next data being displayed).</p>
  
  <p>For example:</p>
  
  <pre><code>UserInput = 1
  
  Do
  
    UserInput += 1
  
    OutputLabel.Text = "UserInput " &amp; UserInput
  
  Loop Until UserInput = 5
  </code></pre>
  
  <p>and the output would look like</p>
  
  <p>UserInput 1
  UserInput 2
  UserInput 3
  UserInput 4
  UserInput 5</p>
  
  <p>I tried this, and other loop structures and can't seem to get things right. The actual app is a bit more sophisticated, but the example serves well for logical purposes.</p>
  
  <p>Any tips are welcome, thanks!</p>