title: How to update Controls from static method?
body: <p>Hello
  Why I haven't access to my private control on form (e.g. ListBox) from a static method? 
  How to update control in this case?</p>
  
  <p>EDIT 1.</p>
  
  <p>my code:</p>
  
  <pre><code>ThreadStart thrSt = new ThreadStart(GetConnected);
          Thread thr = new Thread(thrSt);
          thr.Start();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>static void GetConnected()
      {
          //update my ListBox
      }
  </code></pre>
  
  <p>So it must be void, without param and be static, right?</p>
  
  <p>EDIT 2.</p>
  
  <p>If someone need <strong>solution</strong> in WPF then should try this:</p>
  
  <pre><code>private void GetConnected()
      {
          myListBox.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                      new Action(() =&gt;
                      {
                          myListBox.Items.Add("something");
                      }
                                 )
                   );
      }
  </code></pre>