|
-
Mar 24th, 2000, 10:07 PM
#1
Thread Starter
Junior Member
Please go through the conversation I had in news groups 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
> >
> >
>
>
-
Mar 25th, 2000, 12:40 AM
#2
Frenzied Member
Surely if the OCX is in your project there shouldn't be a problem?!
-
Mar 25th, 2000, 01:01 AM
#3
Thread Starter
Junior Member
I don't want to add the OCX control in my application. I am using that control in runtime dynamically. Then, How can I access it. Please let me know
thanks
Kiran
mail to: [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|