title: UI thread Write have no effect
body: <p>I am developing a C# win forms project ,I have one main GUI (name : <code>Form1</code>) and a class (name :<code>AnotherClass</code>) , i am just updating the GUI text box from <code>AnotherClass</code> ,application gets complied and runs successfully but still text Box on GUI not updated.
  Here is my code :</p>
  
  <pre><code>public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          AnotherClass obj = new AnotherClass();
          obj.updategui();
      }
      public void AppendText(String text)
      {
          if (this.InvokeRequired)
          {
              this.Invoke(new Action&lt;string&gt;(AppendText), new object[] { text });
              return;
          }
          this.textBox1.Text += text; 
      }
  </code></pre>
  
  <p><strong>AnotherClass</strong></p>
  
  <pre><code>class AnotherClass
  {
      public void updategui()
      {
          Form1 mainform = new Form1();
          mainform.AppendText("Say Hi");
  
      }
  
  }
  </code></pre>
  
  <p>Any One Having idea of why the GUI not updated ? please comment with your working code. Regards.</p>