Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Iam now in HRM project and in my Mainform I had a two Panels ,
1 )First One(panel1) for the Menus(I used outlook style sidebar) and
2 ) The second Panel(panel2) is to show The corresponding Controls and Details asper selection on panel1

Some time Content in Panel2 also have tabstrip which need to Show entirely different Controls(which Iam doing using multiple panels via hide and show)...

My doubt is whether it is better to use this Pannel hide and show or to display the form inside the Pannel asper userinput



We want only Mainform to be opened alway and everything to be done in it(my bose's crazy idea)

Its a big project and more than 60-70 forms will be there and we will be having more than 2000 users...So which will give better performance
Posted
Updated 19-Jun-12 23:57pm
v2

1 solution

Create each control derived from Panel and Interface. Then you can load/unload each panel dynamically. Load = attach child to Panel2, unload = detach child control.
You can hold those panels in some dictionary or list for example "List<key,value>" where key is the name of panel and value is the panel that you need to show. This approach giving you flexibility. Using Interface can simplify functionality like save/apply/cancel or whatever...

I hope it helps, sorry for my English.
Roman
 
Share this answer
 
v2

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