none
using VB class in C# RRS feed

  • Question

  • Hello.

    I have a visual basic class and i want use it in my C# code.

    how do i do it?

    grateful...

    Thursday, April 10, 2014 7:50 AM

Answers

  • Compile the class in its own project and create a dll.  You can then add the dll to a C# project by adding reference by browsing to the VB bin\debug\dll folder.  Then add the namespace of the VB class to the top op the C# module with a "using namespace" statement.

    jdweng


    • Edited by Joel Engineer Thursday, April 10, 2014 8:29 AM
    • Proposed as answer by Horizon_Net Thursday, April 10, 2014 10:39 AM
    • Marked as answer by Caillen Monday, April 21, 2014 5:47 AM
    Thursday, April 10, 2014 8:28 AM