Refernece an assembly using a string

  • Thread starter Thread starter D Witherspoon
  • Start date Start date
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?
 
D Witherspoon said:
I'd like to reference a compiled .NET dll assembly using a string in my
application.

'Assembly.LoadFrom', 'Activator.CreateInstance'.
 
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
 
Back
Top