I have created an OCX with a usercontrol called PrcDatagrid. It essentially consists of a grid and a toolbar with a few buttons.
In my main form one such control is added at design time.
I want to be able to create more instances of the usercontrol PrcDatagrid at runtime. I want to use those to display child-data from the selected parent-record.
I'v tried:
This gives me the error "Invalid use of new keyword"
I'v tried:
This gives me the error "Object doesnt support this property or method" on the last line.
Can anyone help me with this?????
Thanks
In my main form one such control is added at design time.
I want to be able to create more instances of the usercontrol PrcDatagrid at runtime. I want to use those to display child-data from the selected parent-record.
I'v tried:
Code:
Dim pdgDetail as PrcDatagrid.PrcDatagridControl
set pdgDetail = new Prcdatagrid.PrcDatagridControl
I'v tried:
Code:
Dim pdgDetail as Object
Set pdgDetail = CreateObject("PrcDatagrid.PrcDatagridControl")
PdgDetail.visible = true
Can anyone help me with this?????
Thanks