Results 1 to 3 of 3

Thread: Reg. dynamically calling an activeX control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    Hyderabad
    Posts
    23
    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
    > >
    > >
    >
    >

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Surely if the OCX is in your project there shouldn't be a problem?!
    Mark
    -------------------

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    Hyderabad
    Posts
    23
    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
  •  



Click Here to Expand Forum to Full Width