locked
Is it possible to create OCX control using VB in VisualStudio 2013? RRS feed

  • Question

  • Hi, we have a legacy ActiveX control written in VB.

    Is there any way to convert it and then develop using VisualStudio 2013?

    Many Thanks

    Martin Vlk

    Monday, February 17, 2014 1:04 PM

Answers

  • .NET cannot create pure COM or ActiveX controls. You can create a .NET DLL with a COM callable wrapper, which is actually a .DLL, using the COM Class.

    http://msdn.microsoft.com/en-us/library/x66s8zcd.aspx

    If you don't need to call the component from a COM client then simply create a standard .NET DLL.


    Paul ~~~~ Microsoft MVP (Visual Basic)

    • Marked as answer by Carl Cai Monday, February 24, 2014 8:47 AM
    Tuesday, February 18, 2014 1:42 PM
  • Hi, we have a legacy ActiveX control written in VB.

    Is there any way to convert it and then develop using VisualStudio 2013?

    Many Thanks

    Martin Vlk

    Maybe this to convert it. Supposedly free for up to 10k lines of code if the code MSDN is used when you go to download it or something.

    ArtinSoft’s Visual Basic Upgrade Companion (VBUC)


    Please BEWARE that I have NO EXPERIENCE and NO EXPERTISE and probably onset of DEMENTIA which may affect my answers! Also, I've been told by an expert, that when you post an image it clutters up the thread and mysteriously, over time, the link to the image will somehow become "unstable" or something to that effect. :) I can only surmise that is due to Global Warming of the threads.

    • Proposed as answer by Carl Cai Tuesday, February 18, 2014 3:19 AM
    • Marked as answer by Carl Cai Monday, February 24, 2014 8:47 AM
    Monday, February 17, 2014 5:32 PM

All replies

  • Hi Martin,

    This post may help you.

    http://social.msdn.microsoft.com/Forums/windows/en-US/8aaa62a9-e1fc-4a0c-a453-314d80d52151/can-i-create-activex-controls-with-vbnet-2012?forum=winformsdesigner

    Monday, February 17, 2014 1:06 PM
  • Hi, we have a legacy ActiveX control written in VB.

    Is there any way to convert it and then develop using VisualStudio 2013?

    Many Thanks

    Martin Vlk

    Maybe this to convert it. Supposedly free for up to 10k lines of code if the code MSDN is used when you go to download it or something.

    ArtinSoft’s Visual Basic Upgrade Companion (VBUC)


    Please BEWARE that I have NO EXPERIENCE and NO EXPERTISE and probably onset of DEMENTIA which may affect my answers! Also, I've been told by an expert, that when you post an image it clutters up the thread and mysteriously, over time, the link to the image will somehow become "unstable" or something to that effect. :) I can only surmise that is due to Global Warming of the threads.

    • Proposed as answer by Carl Cai Tuesday, February 18, 2014 3:19 AM
    • Marked as answer by Carl Cai Monday, February 24, 2014 8:47 AM
    Monday, February 17, 2014 5:32 PM
  • .NET cannot create pure COM or ActiveX controls. You can create a .NET DLL with a COM callable wrapper, which is actually a .DLL, using the COM Class.

    http://msdn.microsoft.com/en-us/library/x66s8zcd.aspx

    If you don't need to call the component from a COM client then simply create a standard .NET DLL.


    Paul ~~~~ Microsoft MVP (Visual Basic)

    • Marked as answer by Carl Cai Monday, February 24, 2014 8:47 AM
    Tuesday, February 18, 2014 1:42 PM