469,288 Members | 2,357 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,288 developers. It's quick & easy.

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 7861
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by John | last post: by
3 posts views Thread by | last post: by
2 posts views Thread by Nad | last post: by
3 posts views Thread by John | last post: by
3 posts views Thread by Ron | last post: by
reply views Thread by Rob Blackmore | last post: by
11 posts views Thread by Tim | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.