ActiveX Control
-
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| -
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|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.