Search code examples
windowswinformsmdiaeromdichild

Why aren't my MDI child forms showing a shadow?


In my application when I make a form as a child form of my main MDI parent form, the child form stops showing Windows 7 default shadow effect behind forms. How do I get child forms shadow to show?

Form obj = Application.OpenForms["My_form"];
if (obj != null)
{
    obj.Focus();
}
else
{
    My_form c = new My_form();
    c.MdiParent = this;
    c.Show();
}

Solution

  • I got the answer finally , if i make a form as child form like

    c.MdiParent =this;
    

    It makes the appearance of the form as flat , If you like to show the form as default windows like forms dont make the form's mdi parent !