Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know how to create multiple child forms with different toolbars, buttons , outputs, etc. and how I do trigger these Childs programmatically , if there are some references, valuable books, I will appreciated your help


thanks
Posted

1 solution

You could find it in many places, for example, http://www.winprog.org/tutorial/app_four.html[^].

However, this topic is not extremely popular; and that's quite explainable. Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?
Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it out of WPF and will hardly support it. More importantly, you will scare off all your users if you use MDI. Just don't. Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages,
How to Create MDI Parent Window in WPF?.

There are not so many UI designs that are so inconvenient and cumbersome. Everyone I know (and I know very many computer people, not just developers) hate such user experience and well agree with me. You cannot find any serious company or UI developer using such design.

Instead, you can develop better UI using just on main window, not counting some small number of modal windows. The views you put in separate MDI children (windows), could be well put in some controls withing the main window; and they controls could act much better than MDI children, giving much better user experience. Use tabbed UI, or dockable (or combined), or controlled by tree/list view TOC-page style, or folding panels or something like that.

[EDIT]

For example, to see how people develop tabbed UI, you can take a look at this CodeProject article: Tabbed View Interface in an MFC Doc View Application[^].

And this is some MSDN sample: https://msdn.microsoft.com/en-us/library/bb982946%28v=vs.90%29.aspx[^].

See also: https://msdn.microsoft.com/en-us/library/65dtx4a4.aspx[^].

—SA
 
Share this answer
 
v2
Comments
ayman shibl 29-Apr-15 15:05pm    
thank you very much for your valuable comment and suggestions , but could you please help me in how do i Use tabbed UI (like firefox for example)and use some windows in it , and including cascade window and tiled options like MDI does? your help will be appreciated

thanks Sergey
Sergey Alexandrovich Kryukov 29-Apr-15 15:11pm    
Sure; see also the update to my answer, after [EDIT].
Will you accept it formally now?
In all cases, your follow-up questions will be welcome.
—SA
Maciej Los 29-Apr-15 15:31pm    
MDI - Never eMDIng story???
5!
Sergey Alexandrovich Kryukov 29-Apr-15 15:44pm    
Ha-ha-ha! Thank you, Maciej.
—SA
Maciej Los 29-Apr-15 15:50pm    
;)

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