Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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

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
 
Share this answer
 
Comments
Maciej Los 21-Jun-12 13:54pm    
Good answer, my 5!
Sergey Alexandrovich Kryukov 22-Jun-12 21:48pm    
Thank you, Maciej.
--SA
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.
 
Share this answer
 
Comments
Maciej Los 21-Jun-12 14:22pm    
Good point, especially: You did not specify the technology! My 5!
Hi,
I think here is what you are looking for-
Visual Studio IDE like Dock Container[^]
Simple Dockable Form With VB.Net[^]
 
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