I have to design a control_panel form. This will have many tabs. How should I design this? Should I make different new forms for each tab or is there a concept of Masterpage in C# WinForms?
Please give me your opinions. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s easy enough to whip up something like this in WinForms, using a
TabControl, filled with several differentTabPages, and a correspondingImageListto hold the icons for each tab:Then you can just place the controls you want on each
TabPageas you normally would. The designer has excellent built-in support for theTabControl, allowing you to simply click on the tab you want to switch to it as you could if your application was running. Here’s a tutorial on implementing tabs in C#.If you need more extensibility and encapsulation than provided by adding individual controls to each
TabPage, you can create a customUserControlcorresponding to each of your tabs, and then place an instance of thatUserControlinto theTabPage. I don’t really know much about MasterPages, but creating a baseUserControlthat all of your otherUserControlsinherit off (and then add their unique elements) of seems like it would provide similar functionality.