Click here to Skip to main content
16,020,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have a requirement like i need to open 4 new child windows within a parent window based on the combo box selection those windows will be displayed. Suppose combo box having options like 1,2,3,4 when i select 1 form that it will displayed first window and whatever the code will be executed while executing the first one i need to open simultaneously second one. How can i open all the windows. I have tried but those are opening after completion of execution. Any suggestions how to open as per my requirement.

Regards,
Jeevan.
Posted

Here is the idea: who needs MDI, ever? Why torturing yourself and scaring out 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. I can explain what to do instead.

Please see my past answers:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^],
How to set child forms maximized, last childform minimized[^].

See also:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
How to Create MDI Parent Window in WPF?[^].

—SA
 
Share this answer
 
Comments
Jeevanrao 28-Feb-12 2:31am    
Thank you very much...
Sergey Alexandrovich Kryukov 28-Feb-12 12:38pm    
You are very welcome.
Good luck, call again.
--SA
It seems you are running some code inside the Load event of the forms, which are all run in the main UI thread and thus blocking your calls.

Run the code inside each of the form in a separate Thread or a BackgroundWorker.
 
Share this answer
 
Comments
Jeevanrao 28-Feb-12 2:30am    
Thank you very much... i have started implementing using BackgroundWorker

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