Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. ActiveX VB

ActiveX VB

Scheduled Pinned Locked Moved Visual Basic
com
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael Weiss
    wrote on last edited by
    #1

    Hello I had created an Activex component I try to create it dynamically with : Set MyTotoObject = CreateObject("TotoViewOCX.TotoView") In this cas I can only acces the function of my object I can not access the extender functions. So I can not displaying it. I try another method: Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto") With this mode I can only acces the extender methods, And I can displaying it. but I need to use the function I have created. Is it possible to create the object and displaying it with the possibility to Use the functionnality i add inside Thanks a lot Michael

    D G 2 Replies Last reply
    0
    • M Michael Weiss

      Hello I had created an Activex component I try to create it dynamically with : Set MyTotoObject = CreateObject("TotoViewOCX.TotoView") In this cas I can only acces the function of my object I can not access the extender functions. So I can not displaying it. I try another method: Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto") With this mode I can only acces the extender methods, And I can displaying it. but I need to use the function I have created. Is it possible to create the object and displaying it with the possibility to Use the functionnality i add inside Thanks a lot Michael

      D Offline
      D Offline
      David Wengier
      wrote on last edited by
      #2

      Do you have to use late binding? Can you just add it to the Components list of your project? -- David Wengier TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot." Sonork ID: 100.14177 - Ch00k

      M 1 Reply Last reply
      0
      • D David Wengier

        Do you have to use late binding? Can you just add it to the Components list of your project? -- David Wengier TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot." Sonork ID: 100.14177 - Ch00k

        M Offline
        M Offline
        Michael Weiss
        wrote on last edited by
        #3

        hi, I need to work without adding the component to the project. And i'm not able to display it

        D 1 Reply Last reply
        0
        • M Michael Weiss

          hi, I need to work without adding the component to the project. And i'm not able to display it

          D Offline
          D Offline
          David Wengier
          wrote on last edited by
          #4

          Michael.Weiss wrote: I need to work without adding the component to the project. In that case, you should be able to do the following:

          Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto")
          MyTotoObject.Object.YourFunction()

          Where "YourFunction" is whatever you want to do. -- David Wengier TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot." Sonork ID: 100.14177 - Ch00k

          M 1 Reply Last reply
          0
          • D David Wengier

            Michael.Weiss wrote: I need to work without adding the component to the project. In that case, you should be able to do the following:

            Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto")
            MyTotoObject.Object.YourFunction()

            Where "YourFunction" is whatever you want to do. -- David Wengier TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot." Sonork ID: 100.14177 - Ch00k

            M Offline
            M Offline
            Michael Weiss
            wrote on last edited by
            #5

            Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!¨ it's working

            1 Reply Last reply
            0
            • M Michael Weiss

              Hello I had created an Activex component I try to create it dynamically with : Set MyTotoObject = CreateObject("TotoViewOCX.TotoView") In this cas I can only acces the function of my object I can not access the extender functions. So I can not displaying it. I try another method: Set MyTotoObject = MMI.Controls.Add("TotoViewOCX.TotoView", "MyToto") With this mode I can only acces the extender methods, And I can displaying it. but I need to use the function I have created. Is it possible to create the object and displaying it with the possibility to Use the functionnality i add inside Thanks a lot Michael

              G Offline
              G Offline
              Gerosa
              wrote on last edited by
              #6

              Hi, How can I create this acitevx component to access from jscript?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups