473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to create activeX in .net VB?

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
Nov 20 '05 #1
4 11503
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
"S. Ahmed" <sa***********@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
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

Nov 20 '05 #2
"S. Ahmed" <sa***********@yahoo.com> schrieb
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/en...alBasicNET.asp

http://msdn.microsoft.com/library/en...sicVisualC.asp

http://msdn.microsoft.com/library/en...nentstocom.asp
--
Armin

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

Nov 20 '05 #3
Check out this Code Project article by Nick Parker:

Creating a CCW for COM enabled non .NET applications
http://www.codeproject.com/dotnet/nettocom.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"S. Ahmed" <sa***********@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
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

Nov 20 '05 #4
* sa***********@yahoo.com (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>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
1
by: Zhou Jingxiong | last post by:
Hi I am using third party COM component which come with an installation program (.exe file included). The program will be register to registry automatically upon installation. There is no...
2
by: W. Broersen | last post by:
I want to use Outlook.Application, but I donot get further. Dim objOLApp As Outlook.Application objOLApp = CreateObject("Outlook.Application") Everytime I'll get the following error: Cannot...
3
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how...
4
by: Patrick | last post by:
I have a middle tier object that generates Excel spreadsheet here is the code moExcel = CreateObject("Excel.Application") moWorkBook = moExcel.Workbooks.Add moSheet =...
1
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original...
16
by: Heinz K | last post by:
Hello all, I'm developing a vb.net 2.0 webservice which accesses a lotus notes database using lotus domino api. This works fine on my local client if I select "Use Visual Studio Development...
1
by: JUN | last post by:
Hi all, I use c# to create ActiveX control, and works under IE browser. Now, i add a "Save" procedure for this ActiveX,but in Client calling ,it not works. the save procedure: public...
0
by: awu25 | last post by:
I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.