Click here to Skip to main content
15,920,632 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added the dll file into my project by add reference. Now I wanted to use that dll file....
Posted

So do:
Type the name of a class that is within the DLL, and a red line will appear at the end.
Hover the mouse over it, and click on the drop down that appears.
It will give you the option of adding the appropriate Imports statement, and off you go.
 
Share this answer
 
You can use reflection together with the Activator class. Use the activator class to create the instance of the class present in the dll and then invoke the methods.

I have provided a solution here in my blog : http://tarundotnet.wordpress.com/2011/06/30/how-to-dynamically-load-assemblies/[^] .
The code is in C Sharp but you can use this converter to convert to VB.NET : http://www.developerfusion.com/tools/convert/csharp-to-vb/[^]

You can also have a look at this discussion : http://stackoverflow.com/questions/2172826/call-method-at-runtime[^]

Hope it helped. :thumbsup:
 
Share this answer
 
v2
IF you added a reference, your project has new classes, which you can create after adding the namespace of your dll ( assuming it's not COM, if it's COM, you got a proxy class per object exposed ). Then you can create objects as normal.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900