By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,777 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

How can I access public access level from one project to the other ?

P: 1
how can I access a class of project_2 in project_1? in visual basic. Please help me!!! Thank you.
Jan 5 '17 #1
Share this Question
Share on Google+
2 Replies


100+
P: 299
You must create a new class library, compile it, and reference the created .dll in both projects.
Jan 5 '17 #2

Frinavale
Expert Mod 5K+
P: 9,731
Luk3r is right, you would need to put the class into a Class Library type of project so that you can reference it in both projects.

There are two ways that you can reference it using visual studio:
  • Compile the Class Library project and add a reference to the DLL generated after compiling to your two projects
  • Put all of the projects into one solution and add a reference to the Class Library project to your other two projects
Jan 11 '17 #3

Post your reply

Sign in to post your reply or Sign up for a free account.