Hi,
Sorry for the vague question. I think I'm looking for a solution to a problem caused by my inexperience on this kind of thing.
I could easilly hard-code all of this, but I'm trying to keep it dynamic as this will be a template project. not only this, but the way I'd like to do it will help reduce resource wastage during my application run time.
I have a tab control, which I can add and remove tab pages from (identified using the tabpage.text attribute)
The tab pages that I am adding are just blank, they get their name from the toolstripmenuitem that is used to select or deselect the tab.
I have an array of modified toolstripmenuitems that fills the toolstrip. The modification is an extra property called panel.
I assign a class to this property that derives from an abstract class. the abstract template inherits a panel and allows me to set up a GUI for performing a set group of tasks.
I don't want all of the panels to be continually active in the background, as events will cause unneccecary activity.
I can't initiate a new panel each instance, because the calling code is accessing the panel attribute through the modified toolstripmenuitem array.
Really, I need to start again, I think there must be a better way of doing this.