Container Control not working with Reg Free COM - Manifest File
Hi,
I am trying to create a Reg Free Deployment for my VB6 projects.
Issue:
I have a container control (User Control), example: MyCtrls.ContainerCtrl
I am trying to add another control in this.
'Code:
'Add Container control in User Control
Dim objParentCtrl As VBCont********************tender
Dim objChildCtrl As VBCont********************tender
Set objParentCtrl = UserControl.Controls.Add("MyCtrls.ContainerCtrl", "objParentCtrl", Me)
'Add Child control in Parent control
Set objChildCtrl = UserControl.Controls.Add("MyChilds.ChildCtrl", "objChildCtrl", objParentCtrl)
This statement generates a run-time error 721. Error message is 'ContainerCtrl' is not a valid control container
Funny thing is that it works well if I do not use Manifest files (using normal COM activation). Error is generated if I create Manifest file for MyCtrls component.
Any ideas how to fix this!!!
|