VB 6.0 Versus VB.NET

  • Thread starter Thread starter Eitan
  • Start date Start date
E

Eitan

Hello,

I'd like to know whether VB.NET supports COM objects, ActiveX ?

Need sample code, please.

Thanks :)
 
Hi Eitan

If you scroll down in this newsgroup about 10messages you see a short
discussion between Captain Chaos and Herfried. K. Wagner about this

Cor
 
Cor said:
Hi Eitan

If you scroll down in this newsgroup about 10messages you see a short
discussion between Captain Chaos and Herfried. K. Wagner about this

I saw that discussion - the answer there were no for creating (Indeed I want
not only using COM object and ActiveXs but also to create them).

I consume that visual studio .net is somehow compitability to old visual
studio version - correct me if I am wrong.

Thanks :)
 
You can use ActiveX Control with DOT NET

You can use ActiveX/COM DLL's with DOT NET
(You can make a reference or use createObject like in VB6)


To use DOT NET dll's from VB6 you have to create
a COM Class in DOT NET.

This goes: Menu "Project" - "AddNew Item" - Com Class.

The simply create your Subs and functions.

But take care of the Variable Types you use.

What I am not know at this time is how to Create Controls in DOT NET and use
them under VB6.
 
* "Eitan said:
I saw that discussion - the answer there were no for creating (Indeed I want
not only using COM object and ActiveXs but also to create them).

I consume that visual studio .net is somehow compitability to old visual
studio version - correct me if I am wrong.

You can make .NET objects visible to COM in order to make them usable
from COM applications. You can create controls for the browser, but you
cannot create ActiveX controls for use with VB Classic (there may be
some dirty hacks, but it's not supported directly and not recommended).

..NET can /use/ both, COM objects and ActiveX controls (most time).
 
As others have said, you cannot create ActiveX controls using .NET. You can
create COM objects using .NET. You can consume both COM objects, and their
siblings, ActiveX controls.

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top