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
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.
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.
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.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)