• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

ActiveX control

Now i use activeX control to do my online project.  now i have 1 problem.  How i want to link 2 activeX control?
0
tonyckx
Asked:
tonyckx
  • 2
  • 2
1 Solution
 
vgruCommented:
You can link these AX controls by registering them on your machine.

Once you have created the AX control and compiled it.  

Go to the other AX control and to this;

Go to the VB menu - Project - Components for Ax controls.  Select your component from the list and it will appear on your toolbox.

Good Luck!
0
 
tonyckxAuthor Commented:
Can explain in more detail???
0
 
tonyckxAuthor Commented:
Can somebody please explain to me more detail. Thanks...
0
 
vgruCommented:
Open an ActiveX Dll project.

Call your class X1 ( for example)
Enter methods, properties and functions on the code window.  
Any methods, properties or functions you want to make available to users of your dll mark as public.

Once this is done compile the dll.  This registers it to your local registry.

Open another project.  Any type will do, standard, ActiveX etc.
Open a standard project for the sake of this trial test.

Go to the the project menu item, select references, find your ActiveX dll here by project name.  Check it and press ok.
Let's call it ProjectX

Insert a button on a form and add the following to the click event.

Dim MyProject as New ProjectX.X1

'calling a method of dll
call MyProject.Method1

'calling a function
MyValue = MyProject.Function1

That's it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now