vb.net ocx interop

  • Thread starter Thread starter marfi95
  • Start date Start date
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
 
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.
 
Back
Top