vb.net ocx interop

M

marfi95

I'm working on a demo app for our customer with various hardware
devices. The app needs to be in vb.net, but the vendor supplied
interface is an .ocx. Is there some doco that someone can point me to
that explains how to use the interop services to call a VB6 .ocx file ?

For example, do I just need an interop wrapper for the ocx or every
method within the ocx ? I guess I just need a good example or pointing
to a good site for doco.

TIA,
Mark
 
H

Herfried K. Wagner [MVP]

I'm working on a demo app for our customer with various hardware
devices. The app needs to be in vb.net, but the vendor supplied
interface is an .ocx. Is there some doco that someone can point me to
that explains how to use the interop services to call a VB6 .ocx file ?

If you are using VS.NET (or VB.NET Standard), right-click the toolbox,
choose "Add/remove items..." -> "COM Controls" -> "Browse...". Select the
OCX component. VS.NET will create the interop assemblies automatically.
 

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