Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Making ActiveX (OCX) Control i VB.NET ?

Making ActiveX (OCX) Control i VB.NET ?

Scheduled Pinned Locked Moved Visual Basic
csharpwinformscomquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrBean
    wrote on last edited by
    #1

    I'm developing a VB.NET based control which works today in my company's .NET WinForms based apps... but I need to use my control in our VB6 based applications also. Is it possible to ActiveX/OCX-enable a .NET control or somehow make a OCX version ? ...and if so, how is it done ? Thanks in advance :)

    D 1 Reply Last reply
    0
    • M MrBean

      I'm developing a VB.NET based control which works today in my company's .NET WinForms based apps... but I need to use my control in our VB6 based applications also. Is it possible to ActiveX/OCX-enable a .NET control or somehow make a OCX version ? ...and if so, how is it done ? Thanks in advance :)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You've got a bit of work to do. Here[^] is an example that covers the basics of how to do it. You'd be wise to read up on COM Interop[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You've got a bit of work to do. Here[^] is an example that covers the basics of how to do it. You'd be wise to read up on COM Interop[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        M Offline
        M Offline
        MrBean
        wrote on last edited by
        #3

        I got a "plain" .NET DLL (COM interopt enabled) to work fine from VB6... no problem here. But I need to make a ActiveX control (visible user control) OCX from .NET... Anyone got a sample or tutorial how to do this ?

        D 1 Reply Last reply
        0
        • M MrBean

          I got a "plain" .NET DLL (COM interopt enabled) to work fine from VB6... no problem here. But I need to make a ActiveX control (visible user control) OCX from .NET... Anyone got a sample or tutorial how to do this ?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          The VB.NET compiler won't build a "real" ActiveX OCX control. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups