Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
In Mdi Form using panel, when i click button the child form load on with in panel.

The Child form set border style : None.

In child form, when i click button that will minimize on with in panel and i will click that minimize form that will maximize on panel.

Can anyone help me out.

Regards
Rajesh.
Posted
Updated 22-Dec-11 4:23am
v2
Comments
Sergey Alexandrovich Kryukov 22-Dec-11 11:29am    
Why?!!
--SA

1 solution

You cannot mix parenting controls by a MDI form with parenting MDI children in any simple way.

Why suffering from the broken design of MDI, which is highly discouraged by nearly everyone, first of all — by Microsoft and extremely inconvenient for users? Did you ever see more or less new software which is at least professional, using MDI? You won't find any. So why torturing yourself and chasing off your users?

There are easy and neat alternatives which you really want to use.
Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^],
How to Create MDI Parent Window in WPF?[^].

The simplest decent alternative is using tabbed interface based on TabControl. What you have now in the form of MDI children will be the tab pages.

—SA
 
Share this answer
 
v2
Comments
Abhinav S 22-Dec-11 11:32am    
Right. 5!
Sergey Alexandrovich Kryukov 22-Dec-11 11:40am    
Thank you, Abhinav.
--SA
Wendelius 22-Dec-11 11:51am    
So true, 5.
Sergey Alexandrovich Kryukov 22-Dec-11 11:58am    
Thank you, Mika.
--SA
Monjurul Habib 22-Dec-11 12:02pm    
5!

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