title: Reading distance from ultrasonic via serial port and show it in a C# textbox
body: <p>I am trying to read the distances from ultrasonic on <a href="http://arduino.cc/en/Main/ArduinoBoardUno" rel="nofollow">Arduino Uno</a> and showing it on text box on my <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="nofollow">Windows Forms</a> application, but it  only reads one value, and I want it to keep reading and displaying the distance on my text box. Here's my code for reading the distance:</p>
  
  <pre><code>for (int j = 0; j &lt; 100; j++)
  {
      string READ;
      READ = serialPort1.ReadLine();
      textBox1.Text = READ.ToString();
      textBox1.Refresh();
      //textBox1.Show();
  }
  </code></pre>