Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi friends,
I have many windows forms.I want to embed all forms to main page(form).
For instance,Main form(management) contain menu control. sub menues for this main menu is student,standered,mark and etc. what i did was when we click submenu,appropriate form are open.but all are open in independently.but what i need is all form shoul be open in the main form like how ms word files are open. how can i do this.
thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 13-Aug-12 15:15pm    
Forms or pages? What do you mean by a page?
--SA
Nish Nishant 13-Aug-12 16:18pm    
Hey SA, he means a form (Winforms project). And as far as I can tell, I've told him what he needed below.
baskaran chellasamy 13-Aug-12 15:18pm    
all are different forms.
Nish Nishant 13-Aug-12 16:17pm    
Baskaran, your question has been answered, right?

You are probably looking at MDI forms. If so, see this nearly 10 year old article that may still be quite applicable to MDI with WinForms :

Introduction to MDI Forms with C#[^]

[edit based on follow-up comment]
-----------------------------------------

Your 2 top-level forms should both be marked as mdi forms. That allows them to contain child forms.
 
Share this answer
 
v3
Comments
baskaran chellasamy 13-Aug-12 13:46pm    
Thanks.this is ok for one main form and more sub form.In my task there is two main forms like MainAdmin and SecondaryAdmin. these two contain some same sub forms. at this situation how can i do it?
Nish Nishant 13-Aug-12 13:49pm    
I guess it should be the same approach. Your 2 top-level forms should both be marked as mdi forms. That allows them to contain child forms.
baskaran chellasamy 13-Aug-12 13:51pm    
Thank for help
Nish Nishant 13-Aug-12 13:55pm    
No problem.
 
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