Search code examples
c#dllvb6methodscom-interop

How do I call a visual basic 6.0 method in c#?


I would like to call a method which is written in visual basic 6.0 from c# (visual studio 2008). Is it possible? How would I do it?


Solution

  • Easiest way to do it is to just compile the VB6 code as an ActiveX DLL. Then you can reference the DLL in your .net project. (Visual studio can reference ActiveX DLLs properly.)