I have an application with a main form, and a TabControl in the centre. When a user creates a new tab I want to have controls (Textboxes and labels etc) loaded onto the tab.
I was thinking of creating my own class that have these controls already defined in it.
I guess I will have to inherit the Tabpage class, have a custom initializing method to put my controls on-screen?
Then create a new object in the Main form:
CustomTabPage custTabPage = new CustomTabPage();
I'm just guessing at the moment. Can someone guide me in the right direction?