how to create activeX in .net VB?

S

S. Ahmed

Hi all:

I am new to VB, especially to VB .NET. I need to create an ActiveX DLL
that I can then use in another application (LabView). I know in VB
6.0, creating ActiveX DLL was easy. The documentations says, 'class
library' now replaces ActiveX DLL. Also, someone told me that an
ActiveX DLL can be exported from .NET VB.

I would really appreciate some help. A simple example would be
awesome.

Thanks in advance.
Shahab
 
A

Armin Zingler

S. Ahmed said:
Hi all:

I am new to VB, especially to VB .NET. I need to create an ActiveX
DLL that I can then use in another application (LabView). I know in
VB 6.0, creating ActiveX DLL was easy. The documentations says,
'class library' now replaces ActiveX DLL. Also, someone told me that
an ActiveX DLL can be exported from .NET VB.

I would really appreciate some help. A simple example would be
awesome.

http://msdn.microsoft.com/library/e...roughCreatingCOMObjectsWithVisualBasicNET.asp

http://msdn.microsoft.com/library/en-us/vbcon/html/vbconCOMInteropInVisualBasicVisualC.asp

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
C

CJ Taylor

ActiveX exposes COM which can be exported in VB.NET (still requires a
managed runtime though). You cannot build ActiveX (OCX) controls with
VB.NET, at least what I've seen, but you can expose it to the com interop.

-CJ
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (S. Ahmed) scripsit:
I am new to VB, especially to VB .NET. I need to create an ActiveX DLL
that I can then use in another application (LabView). I know in VB
6.0, creating ActiveX DLL was easy. The documentations says, 'class
library' now replaces ActiveX DLL. Also, someone told me that an
ActiveX DLL can be exported from .NET VB.

You cannot create ActiveX components/controls any more. All you can do, is
marking a library for use with COM interop. The sample below shows how
to create a very simple .NET DLL and use this DLL in a VB6 project:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/downloads/MyComLib.zip>
 

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