Hello:
I have two child forms fChild1 and fChild2, and I want to set and reactivate
fChild2 over fChild1 when fChild1 is activated. I have tried with this code
in frmChild1, but it doesn't work, and now I dont't have any idea about how
to do it.
Can anybody help me, please?
Thanks in advance
private frmChild2 fChild2;
private void button1_Click(object sender, System.EventArgs e)
{
fChild2=new frmChild2();
fChild2.MdiParent=this.MdiParent ;
fChild2.Show();
}
private void frmChild1_Activated(object sender, System.EventArgs e)
{
if (!(fChild2==null))
{
fChild2.TopMost=true;
fChild2.BringToFront();
}
}