Click here to Skip to main content
13,200,729 members (52,684 online)
Rate this:
Please Sign up or sign in to 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 21-Jun-12 6:23am
Rate this: bad
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.

losmac 21-Jun-12 13:54pm
Good answer, my 5!
Sergey Alexandrovich Kryukov 22-Jun-12 21:48pm
Thank you, Maciej.
Rate this: bad
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.
losmac 21-Jun-12 14:22pm
Good point, especially: You did not specify the technology! My 5!
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 22 Jun 2012
Copyright © CodeProject, 1999-2017
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