Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#1.0 C# C#4.0
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....
Posted 7-Feb-13 16:22pm
Comments
Philippe Mori at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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:
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.aspx[^].
 
—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 375
1 Richard Deeming 240
2 _Amy 205
3 CHill60 195
4 Nirav Prabtani 178
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,045
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100