Click here to Skip to main content
16,018,158 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

In my project I have a MDI_Parent form where I can show several MDI_Child.

When opening any Child_Form it is running well but when closing the one at the front, only the MDI_Parent appears and the Child_Form titles appear with the boxes minimize , maximize and Exit.

On maximize box click the child form appears but with errors in design.

that's my code when showing the form at the beginning.

Child_Form Child = new Child_Form();
Child.MdiParent = this;
Child.Show();


Please can anyone help me ?

Thanks in advance.
:)
Posted
Updated 28-Jul-11 0:00am
v10
Comments
Dalek Dave 27-Mar-11 10:25am    
Edited for Spelling and Readability.

You can start by making sure any third party your child form uses are installed.
Try to open the form in design mode and post the error that occurs here and maybe someone can help you.
 
Share this answer
 
Comments
Dalek Dave 27-Mar-11 10:25am    
Sage Advice.
Abhinav S 27-Mar-11 10:52am    
Thank you.
I am sure there will be more help available if you were to post some of the code.

Hard to know what is going on without it, but are you calling the forms correctly? Are there any DLLs attached to the form? Where is the Focus?

More information = More Help.
 
Share this answer
 
Comments
Abhinav S 27-Mar-11 10:52am    
Good point. 5.
Dalek Dave 27-Mar-11 11:11am    
Cheers.
Michael Waguih 28-Mar-11 3:30am    
Each child form appear very clear when trying to show it, there isn't any problem here .
My problem is when opening more than one child and closing the one at the front , the mdi parent only appears and the other child form is not appearing only ribbon which include the title and the minimize,maximize and close boxes of the child form is still there.
I think you are using like follow:

At an event of a control of MDI use follow:
child ch=new child();
 ch.MdiParent = this;
ch.Show();


First you should have a Form, enable it's IsMdiContainer=true.
child is a normal form.
 
Share this answer
 
I found the solution by assigning the Start position property of the child form to "center parent"
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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