title: no definition for dispatcher
body: <p>I'm getting the error</p>
  
  <blockquote>
    <p>'socketServer.Form1' does not contain a definition for 'Dispatcher' and no extension method 'Dispatcher' accepting a first argument of type 'socketServer.Form1' could be found </p>
  </blockquote>
  
  <p>From</p>
  
  <pre><code>private void tbAux_SelectionChanged(object sender, EventArgs e)
  {
      this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart)delegate()
      {
          textBox.Text = tbAux.Text;
      }
      );
  }
  </code></pre>
  
  <p>According to the <a href="http://msdn.microsoft.com/en-us/library/ms615907%28v=vs.100%29.aspx" rel="nofollow">documentation</a>, the <code>Dispatcher</code> class is part of the namespace <code>System.Windows.Threading</code>, which I'm using.</p>
  
  <p>Am I missing another reference?</p>
  
  <p>In case it's relevant, I added this after receiving an error that "cross-thread operation was not valid" using a server/client socket.</p>