A C# class into a vb project

  • Thread starter Thread starter Amirallia
  • Start date Start date
A

Amirallia

Hi,

How can I add a C# class into a VB project and use it in the project ?

Thanks in advance for your answer
 
Dear Amirallia,

To use C# code in your VB code you should built a C# assembly and reference
to it from you VB project.
In other words: you will get two projects, one C# and one VB. You will get a
C# assembly (= .dll) and this has to be
referenced in your VB project (like you'll normally do with any .net dll)

Hope I helped you,

Michel van den Berg
 
Converting it via a C# to VB translator is an easy and safe option also.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant C++: C# to C++ Converter
Instant J#: VB.NET to J# Converter
 
Amiralla,

Add it in a new C# project (class library) that you have added in your VB
Net project.

Using the "Project" Tab in references, and select it, than you have it
direct in your VB project.

I hope this helps,

Cor
 
Back
Top