BlackKnight
Programmer
Hi,
I have a VB6 user control that has 3 class modules (PublicNotCreateable, notpersistable) in it.
clsDropDown: has a collection in it of clsListItem objects.
clsListItem: simple data holder
clssupercollection: embellishment of VB collection
In the user control when a command button is clicked a form in the user control is displayed with a flexgrid with all of the clsListItem objects in its collection. The collection is always loaded in the form_load event.
When I put the user control (uc1) on a form in another project it works correctly. But when I add another instance of the user control (uc2) to the form it seems that the data displayed in the grid is always that of the 1st control. The data displayed always seems to reflect the first control I place on the form at design time.
Thanx in advance.
Have a good one!
BK
I have a VB6 user control that has 3 class modules (PublicNotCreateable, notpersistable) in it.
clsDropDown: has a collection in it of clsListItem objects.
clsListItem: simple data holder
clssupercollection: embellishment of VB collection
In the user control when a command button is clicked a form in the user control is displayed with a flexgrid with all of the clsListItem objects in its collection. The collection is always loaded in the form_load event.
When I put the user control (uc1) on a form in another project it works correctly. But when I add another instance of the user control (uc2) to the form it seems that the data displayed in the grid is always that of the 1st control. The data displayed always seems to reflect the first control I place on the form at design time.
Thanx in advance.
Have a good one!
BK