title: Updating a Textbox with current variable value
body: <p>I am trying to update a textbox with the current value of a variable (running in another thread) that I have:</p>
  
  <pre><code>myTimer = new System.Windows.Forms.Timer();
  myTimer.Interval = 1000;
  myTimer.Tick += new EventHandler(myTimerElapsed);
  myTimer.Start();
  
  
  private void myTimerElapsed(object sender, System.EventArgs eventArgs)
  {
      myTextBox.Text = Convert.ToString(myThread.myValue);
  }
  </code></pre>
  
  <p>which updates the Textbox every 1 sec. My question is if there is a better way of doing this without using a timer; for example an event that I can trigger whenever <code>myValue</code> changes to reflect the current value at all times?</p>