Question How to use ActiveX?

Trabant

New member
Joined
Jan 18, 2010
Messages
1
Programming Experience
1-3
I am a competent (but not much more) VB6.0 programmer. I'm still developing software in VB6 and want to upgrade to VB.NET. I primarily write simple software to control proprietary hardware which is called by Active X. I need to figure out how to do this in VB.NET before I can switch over to the new version.

In VB6, I connect to the VB6 by adding references to the DLLs (under project / references). When I load the main form, I declare:

Private Sub Form_Load()
Set o = New CBEDCSApp

End Sub

I can then talk to this activex control with commands like o.MeasureNoSave

How do I do the equivalent in VB.NET?

If someone can help get me started, I'd really appreciate it.

Thanks.
 
Have you tried adding references to the DLLs (under Project / Add references) ? Registered ActiveX and other COM libraries are listed in the COM tab there.
 
Back
Top