C# text box latency
<p>I am streaming data from an inertial sensor into a C# application. Using a bool as a switch, I print the incoming values to a series of text boxes, as so:</p>

<pre><code>    if (bStreaming == true)
    {
     textboxTX.Invoke(new Action(() =&gt; textboxTX.Text = Convert.ToString(result[0])));
     textboxTY.Invoke(new Action(() =&gt; textboxTY.Text = Convert.ToString(result[1])));
     textboxTZ.Invoke(new Action(() =&gt; textboxTZ.Text = Convert.ToString(result[2])));
    }
</code></pre>

<p>The problem is, as soon as I start this loop, the rest of my application slows down considerably and starts to lag. Am I doing this wrong? I have tried starting the loop inside a new thread, and see the same result.</p>