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?
tonyckxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.