VB.Net WCL in VB6?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: VB.Net WCL in VB6?

  1. #1
    Jeremiah Guest

    VB.Net WCL in VB6?


    Is it possible to create an ActiveX control (Windows Control Library) in VB.Net
    that will work in VB6? I suppose the WCL doesn't compile to a .ocx file anymore.
    Suggestions? Thanks in advance.

    JKB

  2. #2
    Patrice Scribe Guest

    Re: VB.Net WCL in VB6?

    You could use "tlbexp.exe" to create a type library that exposes your .NET
    class as a type library (you'll need of course the .NET runtime).

    If you intend to consume this control using only VB6, I would create the
    control using a COM based language (such as VB6). IMO it's best to use
    interoperability between .NET and COM only if you can't do otherwise.

    Patrice

    "Jeremiah" <sabjkb@speakeasy.org> a écrit dans le message de news:
    3da332fc$1@10.1.10.29...
    >
    > Is it possible to create an ActiveX control (Windows Control Library) in

    VB.Net
    > that will work in VB6? I suppose the WCL doesn't compile to a .ocx file

    anymore.
    > Suggestions? Thanks in advance.
    >
    > JKB




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center