Please understand the conversation from last to first and let me know the solution.

Thanks


Hi, Many thanks for your information. but, we can not declare "dim
ctrlDiagram as ctrlDiagram". because, ctrlDiagram is a separate .ocx created
in ctrlDiagramPrj project.
Hope it is clear to you. Then how can I get all methods/properties of that
control
Please help me at the earliest.

Thank you,
Param
PS: cc mail to: [email protected]



----- Original Message -----
From: Neil Moran <[email protected]>
Newsgroups: microsoft.public.vb.controls.creation
Sent: Friday, March 24, 2000 10:51 PM
Subject: Re: calling an activeX control


> objExt is the vbControlExtender that wraps the usercontrols. The
ctrlDiagram
> object is actually held on the object property. so to access your methods
so
> the following:
>
> dim objExt as vbControlExtender
> dim ctrlDiagram as ctrlDiagram
>
> Licenses.Add "ctrlDiagramPrj.ctrlDiagram", "ewrinvcmcoe"
> Set objExt = Controls.Add("ctrlDiagramPrj.ctrlDiagram", "myCtl")
> Set ctrlDiagram = objExt.object
> objExt.Visible = True
>
> All your methods are now available to you
>
> Hope this Helps
>
> Neil Moran
> Three International
>
>
> "Param" <[email protected]> wrote in message
> news:OcB3OJbl$GA.52@cppssbbsa03...
> > I am dynamically calling an activeX control ctrlDiagram in a form by
> coding
> > like below:
> >
> > Licenses.Add "ctrlDiagramPrj.ctrlDiagram", "ewrinvcmcoe"
> > Set objExt = Controls.Add("ctrlDiagramPrj.ctrlDiagram", "myCtl")
> > objExt.Visible = True
> >
> > But I could not able to get the control properties/methods. ie., if
> > ctrlDiagram is have some method say, testmethod than, I amnot getting
> > objExt.testmethod How do I get it.
> >
> > Please give reply at the earliest.
> >
> > Thanks
> > Param
> >
> >
>
>