can I use class library from (C#)?

dkim18 used Ask the Experts™

I have a window application.
I would like to convert it to a class library.
Can I access this class library from c#?
Can I access this class library from application?
If not, what might be an alternative solution?
I am trying to use the existing code but build a new interface possibly a web based.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Top Expert 2011
If you convert your code to a class library project you will be able to add the class library project to both the windows application project and the project


a beginner question for you.

Say I have this application which is consists of win forms and functions.
This creates .dlll file in bin folder.

Is that same as class library?

I would create class library by creating a solution, project in visual studio, import all those classes.

How are class library different than that .dll file in the bin folder of that vb application?


Is there an example I can find?
calling functions from code behind.
Todd GerbertSenior Engineer
Top Expert 2010
A Class Library is essentially just a DLL file; unlike an EXE file a DLL can't be run, it's just a library of routines used by other programs.

You don't need to make your existing VB.Net Windows Forms application a class library, you can reference it's .EXE from any .Net project (including C#).

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