Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello Everybody,

Actually i want to open MDI Child Window in Tab Form Like : Mozilla Or Internet Explorer.

So pls suggest me how to do this?

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 17-May-11 2:45am    
Always tag it! WPF, Forms, what?!
--SA

There is an article here: Tabbed MDI Child Forms[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-May-11 2:47am    
My 5. I was looking for another example of this UI style, only put for WPF.
(Please see my answer)
--SA
There is no concept of child window in System.Windows.Forms and not in WPF, except classical MDI. You're not using it (and this is a perfect decision: MDI is one of the worst UI inventions by Microsoft, it is highly discouraged by anyone including Microsoft and never used in more or less acceptable quality applications).

You're trying to use TabControl based UI, which is very good. In such design, there are no other windows except a main form with TabControl (well, they can be, but not related to your tabbed interface). An instance of TabControl has tab pages which contain children control (they can be windowed controls in case of System.Windows.Forms, but they are not windows or forms from the stand point of System.Windows.Forms or WPF; in WPF children can be instances of UIElement.

This is one of the articles showing how to make such interface:
Tabbed MDI in WPF[^]. Griff provided a link to the solution for Forms.
(Sorry, you did not tag your library, so I've chosen WPF; you can search CodeProject or Google for more samples.)

—SA
 
Share this answer
 
v2
 
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