Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Forms TabControl
excuse me sir...
 
i want to build application using C#. and i want multiple page on main form.. all this time i build it with tab control, but not much to look at.. so i try using panel and i find it difficult to change the code and interface... is there a best way to make multiple pages on main form ?
 
thank you very much for your help
Posted 21-Jun-12 6:23am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Yes, TabControl is one of the easiest ways to present the control in multiple "pages" which gives nice results and is convenient enough for the users (unlike MDI which is highly discouraged).
 
Some other styles have benefits, but order of magnitude more complex. For example, docked interface (docks + tabs) like in Visual Studio. The problem is: not available in .NET libraries, needs 3rd parties; and all I knew before had some glitches. And not easy to develop.
 
So, TabControl remains nearly optimal choice. And I never saw any problem in programming with it. If you face some, you are welcome to ask particular questions, we will gladly help you.
 
—SA
  Permalink  
Comments
losmac at 21-Jun-12 13:54pm
   
Good answer, my 5!
Sergey Alexandrovich Kryukov at 22-Jun-12 21:48pm
   
Thank you, Maciej.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You did not specify the technology, but if you are working in WPF, it has a Page option that includes the ability to go back and forth like Internet Explorer.
 
If you want something similar, but not WPF, I would recommend implementing each page as a user control, putting them all in a windo and setting visibility appropriately. More work, but should not be too bad.
  Permalink  
Comments
losmac at 21-Jun-12 14:22pm
   
Good point, especially: You did not specify the technology! My 5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi,
I think here is what you are looking for-
Visual Studio IDE like Dock Container[^]
Simple Dockable Form With VB.Net[^]
  Permalink  

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

  Print Answers RSS
0 Kornfeld Eliyahu Peter 420
1 OriginalGriff 254
2 Nelek 115
3 Gihan Liyanage 99
4 Sergey Alexandrovich Kryukov 99
0 Kornfeld Eliyahu Peter 420
1 OriginalGriff 140
2 Gihan Liyanage 99
3 Nelek 65
4 sankarsan parida 65


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 22 Jun 2012
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