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. C#
  4. Error "Failed to import the ActiveX control. Please ensure it is registered properly.", when using a VB ocx in C#

Error "Failed to import the ActiveX control. Please ensure it is registered properly.", when using a VB ocx in C#

Scheduled Pinned Locked Moved C#
csharpvisual-studioc++comhelp
5 Posts 3 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.
  • T Offline
    T Offline
    TinyTin
    wrote on last edited by
    #1

    Hi, I am trying to use a VB ocx control in C#. I have done the following 1. Registered the ocx 2. Included the component in VS .Net IDE tool bar. But when I try to drag and drop the control I am getting an error "Failed to import the ActiveX control. Please ensure it is registered properly." Any idea why this is happening? Note: Internally the ocx control makes use of a C++ dll. I am using .Net Visual Studio 2005

    A L 2 Replies Last reply
    0
    • T TinyTin

      Hi, I am trying to use a VB ocx control in C#. I have done the following 1. Registered the ocx 2. Included the component in VS .Net IDE tool bar. But when I try to drag and drop the control I am getting an error "Failed to import the ActiveX control. Please ensure it is registered properly." Any idea why this is happening? Note: Internally the ocx control makes use of a C++ dll. I am using .Net Visual Studio 2005

      A Offline
      A Offline
      alexey N
      wrote on last edited by
      #2

      Try to create this component dynamicaly. If it'll works, then it's bugs with form designer, else try to debug your component.

      My english is not so good. Please, correct my errors. Best regards, Alexey.

      1 Reply Last reply
      0
      • T TinyTin

        Hi, I am trying to use a VB ocx control in C#. I have done the following 1. Registered the ocx 2. Included the component in VS .Net IDE tool bar. But when I try to drag and drop the control I am getting an error "Failed to import the ActiveX control. Please ensure it is registered properly." Any idea why this is happening? Note: Internally the ocx control makes use of a C++ dll. I am using .Net Visual Studio 2005

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        hi TinyTin, i got same error when i tried to add shockwave flash object into my form. before dragging the control, first rebuild your project. (not the solution but project! but after you add it into your toolbox!!!) and then try adding the control again into your form. this time u will probably not receive that error. hope this works for you too. -- modified at 4:04 Friday 18th August, 2006

        T 2 Replies Last reply
        0
        • L Lost User

          hi TinyTin, i got same error when i tried to add shockwave flash object into my form. before dragging the control, first rebuild your project. (not the solution but project! but after you add it into your toolbox!!!) and then try adding the control again into your form. this time u will probably not receive that error. hope this works for you too. -- modified at 4:04 Friday 18th August, 2006

          T Offline
          T Offline
          TinyTin
          wrote on last edited by
          #4

          I tried this. It is not working. Looks like there is some problem in creating the wrapper for the ocx. After drag and drop, under Project->References the wrapper is not available. It simply shows the wrapper's name with a warning icon ( i.e.., the icon used to indicate that the reference is not available or not built).

          1 Reply Last reply
          0
          • L Lost User

            hi TinyTin, i got same error when i tried to add shockwave flash object into my form. before dragging the control, first rebuild your project. (not the solution but project! but after you add it into your toolbox!!!) and then try adding the control again into your form. this time u will probably not receive that error. hope this works for you too. -- modified at 4:04 Friday 18th August, 2006

            T Offline
            T Offline
            TinyTin
            wrote on last edited by
            #5

            I tried this. It is not working. Looks like there is some problem in creating the wrapper for the ocx. After drag and drop, under Project->References the wrapper is not available. It simply shows the wrapper's name with a warning icon ( i.e.., the icon used to indicate that the reference is not available or not built).

            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