why does the this.ActiveMdiChild property return null?
<p>I have created an array of objects for a child form in C#.NET. Now i need to copy certain controls on the active child form. But the this.ActiveMdiChild property is returning null. Before adding the control the main form is disabled and another form pops up. 
On closing that form the main form and all its controls are enabled and the control is to be added.</p>

<p>//code</p>

<pre><code>private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Enabled = false;               
            Properties_Form pf = new Properties_Form(this);
            pf.Location = panel4.Location;
            pf.Show();

//code to paste the control
            PictureBox pbx = new PictureBox();
            NewVDrawWindow nvd = (NewVDrawWindow)this.ActiveMdiChild;
            nvd.Controls["tabControl1"].Controls["tabPage2"].Controls.Add(pbx);

...
}
</code></pre>

<p>The code to insert the control is written in the same method after the show method coz i'm supposing that the control would return to where it was jumped from.
The code for copying the control is working fine. There is no problem with it.
Is the error there due to disabling n enabling of the form?.Plz help!!</p>
