Transfering data from Form2 (textbox2) to Form1 (textbox1)?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/14212032/transfering-data-from-form2-textbox2-to-form1-textbox1">Transfering data from Form2 (textbox2) to Form1 (textbox1)?</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 ? Please help.</p>

<p>Okay i need to be clear that this is all the code i have:</p>

<p><code>Form1</code> (button which opens <code>Form2</code>):</p>

<pre><code>    private void btnForm1_Click(object sender, EventArgs e)
    {
        new Form2().Show();
    }
</code></pre>

<p><code>Form2</code> (button which closes <code>Form2</code>):</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>
