Reputation:
Basically, I am creating a Windows Form with a Tab Control on it, and I want to have multiple types of tab pages for the different types of objects I will be editing the properties of. Basically like interface in Visual Studio, where you can have multiple tab pages of code, then multiple tabs of resource files, etc.
To do this, I figure that I will need to:
However, this means that I cannot design the tab pages in Visual Studio (I will need to code the layout by hand).
Am I going about this the correct way? Or is there a different way to approach this problem?
Upvotes: 4
Views: 3921
Reputation: 45789
Have you considered creating a Custom Control for each type of page that you want to display? Rather than having different types of tabs, you can then use Visual Studio to design the layout of each custom control (along with any code that is per-tab), and when a new tab is created, make its sole child control an instance of the relevant type of custom control.
Advantages:
Upvotes: 2