title: Invoke in Class in c# winforms
body: <p>I have a thread running in a class that needs to update value of textbox but invoke does not appear in class.</p>
  
  <p>Any idea how to do it?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading;
  using System.Text.RegularExpressions;
  using System.Windows.Forms;
  using System.IO;
  using CheckedBoxSerpCrawler;
  namespace SERP_Crawler
  {   
      class Crawl
      {
          public Crawl()
          {              
  
          var t = new Thread(() =&gt;
                {
                   for (int i = 2; i &lt; (pagesToScroll / 10); i++)
                    {
                          //Here i need to invoke CheckUrlList
                    } 
                });
          t.SetApartmentState(ApartmentState.STA);
          t.Start();          
  
          }//End Constructor
      private void CheckUrlList(object sender, EventArgs e)
      {
          //Here update textbox
      }
  }
  }
  </code></pre>