title: Using InvokeRequired vs control.InvokeRequired
body: <p>What is the difference between <code>InvokeRequired</code> and <code>somecontrol.InvokeRequired</code>?</p>
  
  <p>like this,</p>
  
  <pre><code>delegate void valueDelegate(string value);
  
  private void SetValue(string value)
  {
     if (InvokeRequired)
     {
         BeginInvoke(new valueDelegate(SetValue),value);
     }
     else
     {
         someControl.Text = value;
     }
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>delegate void valueDelegate(string value);
  
  private void SetValue(string value)
  {   
      if (someControl.InvokeRequired)
      {
          someControl.Invoke(new valueDelegate(SetValue),value);
      }
      else
      {
          someControl.Text = value;
      }
  }
  </code></pre>