Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to access vb functions in c#?

Status
Not open for further replies.

redss

Programmer
Oct 20, 2002
195
If I want to use the visualbasic library functions in my C# code, how do I set up the references?

I tried "using Microsoft.VisualBasic.Vsa" (what is vsa?) but that didnt work :-(
 
I don't believe that you can do it that way.

If there is a particular function in VB that you need in C# you could create a VBClassLibrary and create a wrapper class that contains those functions. You would then access the VBClassLibrary like you described. Using this method you can access classes, user controls, etc. that you create in VB from C#.

What functionality are you looking for?
d-
 
From:


"All you have to do is add a reference to
Microsoft.VisualBasic.dll, and then you can access the static method. It is
on the Microsoft.VisualBasic.Information class."

One of the cool things about .NET is how all of the assemblies and stuff interact with the different .NET languages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top