title: C# Updating form (richTextBox and toolStripStatusLabel) from Program thread
body: <p>I'm trying to take a console application and build a gui for it. I've got the main functions of my GUI working and added the console application files to my new project. I changed the namespace of the files to match that of the winform application and moved the main function of the console application into the Program class defining it as a function taking a CSV path argument which it gets from the form.</p>
  
  <p>So it appears that program it functioning but Im having trouble getting the form to update. There are some Console.WriteLine() functions that I want to write to the toolStripStatusLabel and others to the richTextBox.</p>
  
  <p>I'm new to C# and the main program wasnt written by me but Im trying to build on it.</p>
  
  <p>Program.cs</p>
  
  <pre><code>Form1 Frm1 = new Form1();
  Frm1.UpdateStatusBar("Sorted jobs by EDD....");
  Frm1.Refresh();
  </code></pre>
  
  <p>Form1.cs</p>
  
  <pre><code>public void UpdateStatusBar(string status)
  {
      Form1 Frm1 = new Form1();
      Frm1.toolStripStatusLabel1.Text = status;  
  }
  </code></pre>
  
  <p><a href="http://pastebin.com/HjnJ1YcF" rel="nofollow">Pastebin Program.cs</a>
  See line 92.</p>
  
  <p><a href="http://pastebin.com/PyPEsmRD" rel="nofollow">Pastebin Form1.cs</a>
  See line 88.</p>