title: Transferring data from Form2 (textbox2) to Form1 (textbox1)?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3146576/i-would-like-to-control-form1-from-form2">I would like to control Form1 from Form2</a>  </p>
  </blockquote>
  
  
  
  <p>I'm a newbie to <code>C#</code> and I can't find the answer I'm looking for in google, so I'm hoping someone here could help me. I'm only practicing to transfer data <em>(or pass, call it however you want)</em> from a form to another. </p>
  
  <p>Here's what I have:</p>
  
  <p>I have 2 forms - <code>Form1</code> and <code>Form2</code>.<br>
  <code>Form1</code> contains a textbox (named <code>txtForm1</code>) and a button (named <code>btnForm1</code>).<br>
  <code>Form2</code> contains a textbox (named <code>txtForm2</code>) and a button (named <code>btnForm2</code>).</p>
  
  <p>After running the application, by clicking the button <code>btnForm1</code>, the user opens <code>Form2</code>. The text that the user writes in the textbox (<code>txtForm2</code>) should be transfered to the textbox (<code>txtForm1</code>, which button is disabled) in <code>Form1</code>.</p>
  
  <p>How can I do this transfer?</p>
  
  <p>Edited:<br>
  Okay i need to be clear that this is all the code i have:</p>
  
  <p><strong>Form1</strong> (button which opens <strong>Form2</strong>):</p>
  
  <pre><code>    private void btnForm1_Click(object sender, EventArgs e)
      {
          new Form2().Show();
      }
  </code></pre>
  
  <p><strong>Form2</strong> (button which closes <strong>Form2</strong>):</p>
  
  <pre><code>    private void btnForm2_Click(object sender, EventArgs e)
      {
          this.Close();
      }
  </code></pre>
  
  <p>I have NOTHING ELSE. (I'm a total newbie)</p>