"Herfried K. Wagner [MVP]" a écrit
* chriske <mo*@home.home> scripsit: I'm a newbee student at VB.net so bear with me,
is it possible to make a collection from a tabpage inside the
tabcontrol so that I can make a new instance containing all the labels
and textboxes and so on ?
it's about a score board for Yahtzee (yes, this is a school exercise
d;p) that I like to copy for each player
Create a UserControl with the controls placed on it and instantiate it
when adding a tabpage. Then add the control to the tabpage
('TabPageX.Controls.Add(...)').
I've been looking into this "user control" but it seems to far reached
for what I need
as you can create a form with buttons and textboxes and so on and then
make a new instance in the sub main of the project so would I like to
do this with a tabpage
only the difference is that a tabpage is already inside another
container, the tabcontrol, can I create just the one tabpage and simply
make a copy from the first already containing al the existing controls
but with another name on the tab ?
how I loved the control arrays of VB6, now I seem to have to learn
another way to create several instances of the same object and also
looping through this collection seems unnecessary difficult now
thnx