can I use VB.net class library from asp.net (C#)?

dkim18
dkim18 used Ask the Experts™
on
Hi,

I have a VB.net 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 asp.net application?
If not, what might be an alternative solution?
I am trying to use the existing vb.net code but build a new interface possibly a web based.

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Top Expert 2011
Commented:
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 asp.net project

Author

Commented:
a beginner question for you.

Say I have this vb.net 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?
Thanks

Author

Commented:
Is there an example I can find?
calling vb.net functions from asp.net code behind.
Todd GerbertSenior Engineer
Top Expert 2010
Commented:
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