Set focus on textbox control on parent form when closing child form
<p>I need a help with a problem of loosing focus on textbox control (which is a part of parrent form) when closing a child form.
By clicking button1 I close child form (Form2) and return to parent form (Form1) by bringing it to the front. Below is the code:</p>

<pre><code>    private void button1_Click(object sender, EventArgs e)
    {
         Form1 myForm = new Form1();
         Control[] serialTxtBox = myForm.Controls.Find("txtSerial",true);
         TextBox serialTxt = (TextBox)serialTxtBox[0];
         serialTxt.Focus();
         Close();
    }
</code></pre>

<p>When having child form closed focus is not set to serialTxt control. What I'm doing wrong?</p>
