Two projects in the same solution - USAGE

dim_d1762

Newcomer
Joined
Nov 14, 2003
Messages
1
Hi, Help pls.

I have a solution created in VS.Net and I added two projects in it, the main project's written in VB and the second one in C#.
I want to reference classes from C# project and use it in VB one.

Like in VB there is a front end and in C# there is an application logic. So when I click a button in VB form (for exmple "RUN") I want to call a method defined in C# project.

How do I do that? Where to go to find any help on that topic.

I set up project dependences but it didn't help.

Thank you,
and I appriciate any advice on that.

Dim
 
In the Vb project add a reference to the C# one.
You should then be able to access the C# classes using the syntax of

C#projectnamespace.classname

however only classes and methods declared public in the C# project will be available.
 
Back
Top