title: System Threading: Cross-thread operation not valid
body: <p>The error I'm having from my thread is:</p>
  
  <p>Cross-thread operation not valid. Control 'richTextBox8' accessed from a thread other than the thread it was created on.</p>
  
  <p>I have this code I use for my List of string that is causing the error.</p>
  
  <pre><code>string[] parts = richTextBox8.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
  </code></pre>
  
  <p>Now I'm working with using System.Threading that requires to transform the code above into a format something like this code to work but I'm unable to do it or is there some other way?</p>
  
  <pre><code>richTextBox8.Invoke((Action)(() =&gt; richTextBox8.Text += "http://elibrary.judiciary.gov.ph/" + str + "\n"));
  </code></pre>