Home All Groups Group Topic Archive Search About

Using a thirdparty ActiveX control in C#

Author
8 Mar 2007 10:37 PM
Oswaldfig
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 ...

Author
8 Mar 2007 11:55 PM
Rad [Visual C# MVP]
On Thu, 8 Mar 2007 14:37:08 -0800, Oswaldfig wrote:

> 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
Author
9 Mar 2007 8:00 AM
Oswaldfig
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.



Show quote
"Rad [Visual C# MVP]" wrote:

> On Thu, 8 Mar 2007 14:37:08 -0800, Oswaldfig wrote:
>
> > 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
> --
> Bits.Bytes
> http://bytes.thinkersroom.com
>
Author
9 Mar 2007 7:05 PM
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.

AddThis Social Bookmark Button