Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All


I have MDI form and having the Grid on it.
I open the Child form from MDI form.
When i open the Child Form from MDI form the form is behind the Grid of the MDI Form.
Can anyone help me to solve this problem?



Thanks
Froxy
Posted

1 solution

Yes, and that's the expected behavior. You should NOT be putting controls in the client area of the MDI Parent form.

MDIChild forms are rendered inside a control on the MDIParent form. This control is called the MDIClient and it takes up the entire MDIParent form except for the area taken on by menu, tool and status bars.

Since you dropped a DGV control on the MDIParent, it's sitting immediately above the MDIClient control and covering it up.

You probably should not be using an MDI layout for for application. It's probably the 2nd most abused "feature" of Windows Forms, right after the PictureBox control, meaning you probably should not be using MDI.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900