title: How to add item to listBox from other thread?
body: <p>I'm starting new thread: </p>
  
  <pre><code>Thread t = new Thread(UpdateListOutput);    
  t.IsBackground = true;    
  t.Start();
  </code></pre>
  
  <p>UpdateListOutput:</p>
  
  <pre><code>void UpdateListOutput()
  {
      while (true)
      {
          if (!string.IsNullOrEmpty(engineOutput))
          {
              OutputBox.Items.Add(engineOutput);
          }
      }
  }
  </code></pre>
  
  <p>And I recive error: </p>
  
  <blockquote>
    <p>Cross-thread operation not valid: Control 'OutputBox' accessed from a
    thread other than the thread it was created on.</p>
  </blockquote>
  
  <p>How can I run this?</p>