title: Repopulate a form field from a different class in C#
body: <p>I'm trying to repopulate a textbox from a separate class. I've looked through a number of instances of this same question and found what I thought was a good solution. But, I can't make it work.  I've tried to resolve the issue by creating a separate thread to send the data back. I don't know if this is a great idea or not. But, I know the data is getting back to the correct place without it because it shows up in the console.  Any suggestions?  Thanks!</p>
  
  <pre><code>public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
      }
  
      public void updater(double value)
      {
          textBox1.Text = value.ToString(); // Trying to update here
          Console.WriteLine(value);  // The new multiple makes if back to here...
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          CALC c = new CALC();
          c.valuecalculator(.0025);
      }
  }
  
  public class CALC
  {
      public void valuecalculator(double multiplier)
      {
          for (int index = 0; index &lt; 1000; index++)
          {
              Form1 f = new Form1();
              double newMultiple = index * multiplier;
              f.updater(newMultiple);
          }
      }
  }
  </code></pre>