Within a UserControl, I want to use a self-made-object GColumns. This object has been compiled as an ActiveX-dll. Now I wish to save this GColumns-object in the PropertyBag of the UserControl, because I need the values which are stored in it. The values of the GColumns-object are filled at design-time.
This is the problem:
Using either PropBag.WriteProperties or PropBag.ReadProperties results in an runtime error: (-2147467262 "System Error &H80004002 Interface not supported").
I also tried to create the GColumns-object in the same project as the usercontrol, but this didn't work either.
The GColumns-object is not used as a property. This should not be a problem, because other variables can be stored in the PropBag easily. Other standard objects cannot be stored in the PropBag, so maybe I'm just having trouble finding the right way.
Hopefully someone has the brains to answer me.