Sharing class between projects

  • Thread starter Thread starter Susan Landgraf
  • Start date Start date
S

Susan Landgraf

I am new to VB.net. I have a solution that contains 2
projects, both converted from VB 6. I have a class in one
project that I would like to use in the second project.
How do I do this?

Thanks a lot.
Susan
 
Put the class in a separate project, compile it, and then reference it from
both the other projects.
 
* "Susan Landgraf said:
I am new to VB.net. I have a solution that contains 2
projects, both converted from VB 6. I have a class in one
project that I would like to use in the second project.
How do I do this?

Add the file to the 2nd project by opening the "Add Existing File..."
dialog and choosing "Reference" from the dropdown of the "Add" button.

- or -

Place the class inside a class library project and reference this class
library from both projects.
 
Back
Top