472,353 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Equivalent of an Activex EXE in VB.Net

Software such as Excel or Word exposes a COM object model which allows
them to be automated by any language that can call COM objects.

As I understand it, I can do the same in VB6 by writing an Activex EXE.
Such a program can have a GUI which will be accessed by users in the
normal way as well as exposing a COM object model.

How can I do the .Net equivalent in VB.Net? According to VB.Net help, the
VB.Net equivalent of an Activex EXE is a Class Library. But a Class
Library project doesn't appear to allow me to choose a starting point -
it's only intended to export objects to be called from elsewhere. This is
all very well but how do I write a program in VB.Net with a GUI which can
also export its object model to allow it to be automated/consumed by other
programs?
Nov 21 '05 #1
8 8007
On 2005-04-26, Nikkita <ni*****@cix.co.uk> wrote:
Software such as Excel or Word exposes a COM object model which allows
them to be automated by any language that can call COM objects.

As I understand it, I can do the same in VB6 by writing an Activex EXE.
Such a program can have a GUI which will be accessed by users in the
normal way as well as exposing a COM object model.

How can I do the .Net equivalent in VB.Net? According to VB.Net help, the
VB.Net equivalent of an Activex EXE is a Class Library. But a Class
Library project doesn't appear to allow me to choose a starting point -
it's only intended to export objects to be called from elsewhere. This is
all very well but how do I write a program in VB.Net with a GUI which can
also export its object model to allow it to be automated/consumed by other
programs?


The closest equivalent would be .NET remoting... Your application can
host objects that other processes can get hold of and send commands.

--
Tom Shelton [MVP]
Nov 21 '05 #2
Nikkita wrote:
How can I do the .Net equivalent in VB.Net?


If it helps, you can reference .exes in VS2005...

--

(O)enone

Nov 21 '05 #3
You would have to create a Class Library that exposes your object
model. It can also contain GUI elements like forms and dialog boxes.
You would then have to create a Windows Forms Application to allow the
app to run stand alone.

As was pointed out by Oenone, VS2005 will allow the referencing of
..exe's

Nov 21 '05 #4
Just FYI, the VS.NET 2003 IDE does not allow you to reference *.exe files.
However, if you compile your project through the command line, it will allow
you to reference *.exe files. Try it out, it works :)

"Chris Dunaway" wrote:
You would have to create a Class Library that exposes your object
model. It can also contain GUI elements like forms and dialog boxes.
You would then have to create a Windows Forms Application to allow the
app to run stand alone.

As was pointed out by Oenone, VS2005 will allow the referencing of
..exe's

Nov 21 '05 #5
In article <#R**************@tk2msftngp13.phx.gbl>,
ts******@YOUKNOWTHEDRILLcomcast.net (Tom Shelton) wrote:
Software such as Excel or Word exposes a COM object model which
allows them to be automated by any language that can call COM objects.

As I understand it, I can do the same in VB6 by writing an Activex
EXE. Such a program can have a GUI which will be accessed by users in
the normal way as well as exposing a COM object model.

How can I do the .Net equivalent in VB.Net? According to VB.Net help,
the VB.Net equivalent of an Activex EXE is a Class Library. But a
Class Library project doesn't appear to allow me to choose a starting
point - it's only intended to export objects to be called from
elsewhere. This is all very well but how do I write a program in
VB.Net with a GUI which can also export its object model to allow it
to be automated/consumed by other programs?


The closest equivalent would be .NET remoting... Your application can
host objects that other processes can get hold of and send commands.


Thanks, I'll look into that.
Nov 21 '05 #6
In article <ec**************@TK2MSFTNGP09.phx.gbl>, oe****@nowhere.com
(Oenone) wrote:
Nikkita wrote:
How can I do the .Net equivalent in VB.Net?


If it helps, you can reference .exes in VS2005...


Thanks, this could be useful.
Nov 21 '05 #7
In article <11**********************@o13g2000cwo.googlegroups .com>,
du******@gmail.com (Chris Dunaway) wrote:
You would have to create a Class Library that exposes your object
model. It can also contain GUI elements like forms and dialog boxes.
You would then have to create a Windows Forms Application to allow the
app to run stand alone.

As was pointed out by Oenone, VS2005 will allow the referencing of
.exe's


I see, thanks for your help. Things are becoming clearer now.
Nov 21 '05 #8
In article <57**********************************@microsoft.co m>,
rm*****@newsgroup.nospam (=?Utf-8?B?cm1hY2lhcw==?=) wrote:
Just FYI, the VS.NET 2003 IDE does not allow you to reference *.exe
files. However, if you compile your project through the command line,
it will allow you to reference *.exe files. Try it out, it works :)


That's very interesting, thanks. I'll take a look at that.

Nov 21 '05 #9

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

Similar topics

14
by: John | last post by:
Is there an equivalent of COM on Linux that I can get through Python. My need is to have some sort of language independent component framework. I...
3
by: | last post by:
Hello All, I am doing some research on ActiveX and it's place in .NET. In .NET, does ActiveX have an equivalent counterpart. Where would I be...
2
by: Nad | last post by:
Hello, dll hell has been eliminated in .NET using assembly versioning. I am new in .NET and would like to know if there is any...
11
by: Eric Dan | last post by:
Hi, This may sound a trivial question but I didn't find (yet) the equivalent of ..NET to ActiveX controls (good old COM way :-) ) or Java applets...
3
by: John | last post by:
anyone?
3
by: Ron | last post by:
Hello, I need project2 to communicate with project1. I usd to do this in VB6 where Project1 was an ActiveX app and Project2 was a regular exe....
0
by: Rob Blackmore | last post by:
Hi, A simple question I'm sure, but can someone point me in the right direction of how to have the equivalent of 2 projects in VB.Net, 1 that is...
11
by: Tim | last post by:
hi, I would like to create an application that runs in a web browser. It must have access to the client machine. I guess a bit like the...
0
by: Steve Alpert | last post by:
I'm using the ActiveX interop to include an activeX control on a C# form. In InitializeComponent(), there is a call like: this.myControl = new...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.