Refernece an assembly using a string

D

D Witherspoon

I'd like to reference a compiled .NET dll assembly using a string in my
application.

In VB 6.0 this could be done similariliy using CreateObject(sString) instead
of referencing the object type in your application.

There must be something similar you could do in VB.NET so that the reference
does not have to be included in the project.

Any help?
 
A

Armin Zingler

H

Herfried K. Wagner [MVP]

D Witherspoon said:
I'd like to reference a compiled .NET dll assembly using a string in my
application.

'Assembly.LoadFrom', 'Activator.CreateInstance'.
 
C

Cor Ligthert [MVP]

D,

You can create a library as DLL.

You can than using Project, Add Reference add that DLL to your project.

By importing the namespace it or fully qualify the name, can you use the
classes from that DLL in your application as objects.

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top