2 project in one solution

  • Thread starter Thread starter Sidney
  • Start date Start date
S

Sidney

Hi,
I have two project in one solution, one is VB and the other is C#, I
want to know...is it ok?
Second, if it is ok, how can I call the C# function in VB project?
Thank You........
Sidney
 
Yes, that is very much okay and one of the great VS/.NET Framework features.
You need to add a reference to the C# project from the VB project, and then
import the C# namespace containing the function. Depending on whether your
function/method is static you'll then have to instantiate an object of the
class type in which your C# method is located, and then subsequently call
the method.
 
Thank You~
I try try sin

CT said:
Yes, that is very much okay and one of the great VS/.NET Framework
features. You need to add a reference to the C# project from the VB
project, and then import the C# namespace containing the function.
Depending on whether your function/method is static you'll then have to
instantiate an object of the class type in which your C# method is
located, and then subsequently call the method.
 

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

Back
Top