how to close mdiparent form from a dialogue form (like license form)
<p>I'm trying to close my main form if the user clicks on the exit button on license form or close it.</p>

<p>I try this code on exit button but didn't work:</p>

<p>//--------------------------------------------------------------------</p>

<pre><code>    private void button2_Click(object sender, EventArgs e)
    {
        Form1 aa=new Form1();
        aa.Close();
        this.Close();
    }
</code></pre>

<p>//--------------------------------------------------------------------</p>

<p>I'll be thankful if somebody can help me!</p>
