Hi everyone,
I'm still learning vb.net, so I'm not terribly familiar with all the terminology, otherwise I would have searched a little harder before posting.
I'm working on a program where the user can add various forms to a MDI parent. I would like each of the child forms to be part of the same array, all of the child forms will be of various types. Some forms may display a textbox, some forms may contain a graph, some forms may contain an image, etc.
The way I'm currently doing it is to create an array for each type of form:
Public frmChildText(5) as frmTextEntry
Public frmChildPct(5) as frmPct
Public frmChildChart(5) as frmChart
frmChildText(1) = new frmTextEntry
frmChildPct(1) =new frmPct
frmChildChart(1) =new frmChart
What I would like to be able to do is something like this:
Public frmChild(5) as frmDisplay
dim frmChild(1) as new frmDisplay.frmTextEntry
dim frmChild(2) as new frmDisplay.frmPct
dim frmChild(3) as new frmDisplay.frmChart
Is something like this possible, or do I need to stick with the way I'm doing it?
Thanks
I'm still learning vb.net, so I'm not terribly familiar with all the terminology, otherwise I would have searched a little harder before posting.
I'm working on a program where the user can add various forms to a MDI parent. I would like each of the child forms to be part of the same array, all of the child forms will be of various types. Some forms may display a textbox, some forms may contain a graph, some forms may contain an image, etc.
The way I'm currently doing it is to create an array for each type of form:
Public frmChildText(5) as frmTextEntry
Public frmChildPct(5) as frmPct
Public frmChildChart(5) as frmChart
frmChildText(1) = new frmTextEntry
frmChildPct(1) =new frmPct
frmChildChart(1) =new frmChart
What I would like to be able to do is something like this:
Public frmChild(5) as frmDisplay
dim frmChild(1) as new frmDisplay.frmTextEntry
dim frmChild(2) as new frmDisplay.frmPct
dim frmChild(3) as new frmDisplay.frmChart
Is something like this possible, or do I need to stick with the way I'm doing it?
Thanks