Using a thirdparty ActiveX control in C#

G

Guest

Hi,
I guess this question is been asked allready , but i'm still didnt have the
answer that helped me.
I have an ActiveX control that i used in VB6, now i want to use it also in
C#. Is there any step by step instructions how to implement an ( non
MicroSoft) activeX control in C# ?

Thanks in advance ...
 
R

Rad [Visual C# MVP]

Hi,
I guess this question is been asked allready , but i'm still didnt have the
answer that helped me.
I have an ActiveX control that i used in VB6, now i want to use it also in
C#. Is there any step by step instructions how to implement an ( non
MicroSoft) activeX control in C# ?

Thanks in advance ...

You shouldn't have a problem ... just add it as a COM reference and you'll
be good to go
 
G

Guest

Thanks Rad,

But i'm affraid i have to pop the question again, Perhaps is there any
examples available how to use a COM as a reference in C#? I already add the
ActiveX control to my Toolbox.
 
D

Dick Grier

Hi,

Drop the control from your toolbox onto a form. VS will create the Interop
assemblies and references that you need. Just use it like any other control
after that... Assuming that the control itself does "normal" things.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top