title: C#: Calling method in another thread
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/661561/how-to-update-gui-from-another-thread-in-c">How to update GUI from another thread in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>Following scenario:
  I have a class with some GUI elements (winforms). This class has a update method which changes things on the controls.
  I also have a FileSystemWatcher. This object gives me a callback whenever a file changes. In that case I call the update method.</p>
  
  <p>As you might guess this makes the application crash. The reason: the callback from the FileSystemWatcher is in another thread that the one that created the controls. If I then call the update method it can't access the controls.</p>
  
  <p>What is the way to fix this? Thanks!</p>