Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I used IsMdiContainer and placed a panel in the parent form. But there is a problem - the child forms go behind the panel. How could I solve this?
Posted
Updated 19-Feb-10 11:29am
v2

can you explain why are you using a panel in an Mdi Parent? I don't see the point of doing it. but to solve your problem try to add this line of code before showing your child form

yourformname.Parent = yourpanelname;
 
Share this answer
 
v2
Well... you shouldn't do such a thing. It is against the phylosophy of mdi.
But, if you really want to place things on the mdi parent, try getting a handle on the mdiclient.
You may try to start looking here:
Getting a "Handle" on the MDI Client[^]
 
Share this answer
 
Or... you may cheat:
1. hide the panel if there are any children open or
2. dock the panel and use only the remaining available space for the children or
3. actually create a default child with the panel on it and make it fixed, uncloseble or
4. think of something else
 
Share this answer
 
I want to make a good interface and place menu shortcuts,clock and some things on the panel like calender.this code dosen't work.
 
Share this answer
 
v2
If you face with anew thing it dosen't mean you are cheat. in the new world there is not imposible . every thing that you search and want it you can take.
 
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