how can work with class library in vb.net 2008?

Vijay Kamble
Vijay Kamble used Ask the Experts™
on
how can work with class library in vb.net 2008?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
kaufmedGlanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
Do you mean creating one, or do you mean consuming one from within another project? If the former, just choose the "Class Library" project from the "Windows" section when you start a new project. If you mean the latter, then you use the "Add Reference" option from the "Project" menu. If the library is a project within the same solution as the main application, then its better to use the "Project" tab to add the reference. If, however, you are trying to reference a 3rd-party library or a library that you created, but which exists in another solution, then you would use the "Browse" tab.

"Add Reference" Option
Use "Project" Tab if Library is in Same Solution
Use "Browse" Tab for Libraries Which are not a Part of the Same Solution
Vijay Kamblesoftware engineer

Author

Commented:
i have one small project,code of this project is on singal form. i want to create seperate class libraries for common procedures.This is because when i want to deploy the project  or any customised modifications in this project i only done in class library project.
Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
Within your solution you can "Add New Project" and make its type "Class Library". Then break out the logic you want separated into one or more new classes within the class library. Add a "Project" reference as I described above to the main form application. Then it is simply a matter of importing the appropriate namespace into the main form in order to use those new classes.
Vijay Kamblesoftware engineer

Author

Commented:
can anybody give me tutorials or link for better understanding(Practically).i will be thankful to him..
Vijay Kamblesoftware engineer

Author

Commented:
Hi kaufmd..Can u give me some link or tutorials for class library?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial