A C# class into a vb project

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
 
M

Michel van den Berg

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
 
G

Guest

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
 
C

Cor Ligthert [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top