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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using C# classes in VB.net

Status
Not open for further replies.

FatalExceptionError

Technical User
Apr 10, 2001
100
0
0
US
Im relatively new to .Net. I wrote a class/classes in C# but i want to try and use them in VB.net. When i added the class to my project i get the underlined squiggly line indicating an error. How do i go about using my class in VB.

If cats always land on their feet
and Toast always lands buttered side up
What happens if you tape toast, buttered side up on a cat's back??????
 
Update:

I figured out going through the folders to find the .dll, adding it to the solution and importing it but is there another way to have it referenced?

The statement below is true
The statement above is false
There are 10 kinds of people, those who know binary and those who don't
I am a geek and i approve this message
 
You can have two projects. Firs will be C# Class Library and the second will be Visual Basic Windows Application. Then add a reference to the VB project and select a project tab and select first project. Now when you build VB app, first c# dll will be bulded and after that vb app. This allow you to debug vb and c# at the same time.
 
Preciate it

The statement below is true
The statement above is false
There are 10 kinds of people, those who know binary and those who don't
I am a geek and i approve this message
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top