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 Control

ActiveX Control

Scheduled Pinned Locked Moved Visual Basic
comjavatoolsquestion
2 Posts 2 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.
  • O Offline
    O Offline
    Olli
    wrote on last edited by
    #1

    Hi there! I'm kind of new to VB, but not really new to windows-programming....:~ Here's my prop: I have an ActiveX Control [MyControl] which I have to do, but this control has to use another (special) ActiveX-control [specControl] within, so I have to pull the properties of [specControl] through [MyControl] that I can use them together in other applications. (OK, sounds wiered, but is'nt really) So, what do I have to do that I can use the properties of the special control??? Thanks in advance!!

    Olli "Ooooooh, they have the internet on computers now!"
    Homer Simpson
    :beer: + :java: = NULL :=> X|

    D 1 Reply Last reply
    0
    • O Olli

      Hi there! I'm kind of new to VB, but not really new to windows-programming....:~ Here's my prop: I have an ActiveX Control [MyControl] which I have to do, but this control has to use another (special) ActiveX-control [specControl] within, so I have to pull the properties of [specControl] through [MyControl] that I can use them together in other applications. (OK, sounds wiered, but is'nt really) So, what do I have to do that I can use the properties of the special control??? Thanks in advance!!

      Olli "Ooooooh, they have the internet on computers now!"
      Homer Simpson
      :beer: + :java: = NULL :=> X|

      D Offline
      D Offline
      Diederik de Haas
      wrote on last edited by
      #2

      You have 2 options: 1. Add a property Get "specControl" (or whatever name you want) to your MyControl with return type specControl. This makes the all properties/methods of specControl accessible for the outside world. A thing to be aware of is that you test/handle _every_ possible combination of specControl and MyControl, because you don't have control over specControl anymore. 2. This is usually a better solutions although looks like/is duplicating code. Add properties of specControl to MyControl which you want to make available to the outside world. In the implementation of those properties you're internally forwarding to specControl. With this option _you_ are in control of specControl. Hope this helps.

      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