Click here to Skip to main content
15,791,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i dont want to use more number forms in my project, but i have requirement like that so by using single form is it possible to create any other virtual form or something(work space)... if i use more number of forms, its tough to handle....
so without using more forms how to handle project effectively.... i need small guidance... help me....
Philippe Mori 8-Feb-13 0:02am    
It depends a lot on the type of application and the reason why you want to do that so a little more explanations might be useful for us to give meaningful answers.
selva_1990 8-Feb-13 8:54am    
its c# windows application if I use more forms it'll take time know to load Tat's why asking

1 solution

With proper design, only one form is needed; and this is probably the best design for most cases. Sometimes, some modal forms are also needed, but we may not count them.

What you have now separate forms should become container controls like Panel or TabPage. You can change Z-order or visibility of those controls which would create an impression of "changing" the form, you can switch tab pages of TabControl. You can also shrink/expand panels. Finally, you can create a docking interface, pretty much like the one of Visual Studio.

You can easily implement all such design except docking interface, which would be a huge amount of work. Unfortunately, at this time, I don't know a good open-source ready-to-use docking library (but for WPF this is AvalonDock).

For a very good and easy-to-implement solution I would recommend System.Windows.Forms.TabControl:[^].

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