title: Passing data from child form to parent form
body: <p>I have a web browser control in a child form and it captures some data from the displayed web page. I need to use this data in the browser form to be passed to the parent form, but without having to start a new instance of it as it's already open.</p>
  
  <p>The parent form needs to recieve this data from the browser and update some textboxes with the variables set from parsing the page.</p>
  
  <p>I have this in the parent form:</p>
  
  <pre><code>private void browserToolStripMenuItem_Click(object sender, EventArgs e)
      {
          System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(RunBrowser));
          t.SetApartmentState(ApartmentState.STA);
          t.Start(); 
      }
  
      public static void RunBrowser()
      {
          Application.Run(new BrowserForm());
      }
  </code></pre>
  
  <p>I have tried many things in the child form, but I cannot get it to work at all. The best I can get is to pass a variable to the parent and display it via a MessageBox, but it refuses to update the TextBox at all.</p>
  
  <p>BTW I have been trying to solve this now for nearly 12 hours straight, that is the only reason I am asking here.</p>