Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to reference a .dll file?

Status
Not open for further replies.

onechuck

IS-IT--Management
Feb 14, 2006
79
US
How do I reference a .dll file? I have it in my bin folder at the moment and it's not doing anything.
 
Right click references in your solution explorer and select Add Reference. Then, follow the dialog box.

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Okay, I got it added. It shows a .refresh in the bin folder under the .dll file. Now the question is, how do I know if it is working or not?
 
I'm not sure by what you mean by "working" but if you are able to access the methods or properties of classes in the .dll without receiving exceptions then I would say it is functioning.

The wisest people are those who are smart enough to realize they don't know it all.
 
I guess what I meant is, how do I access the classes and properties of the .dll?

Again, thank you for your patience. I'm very new to C#.
 
Do you see this .dll in your references library in solution explorer?

For example, if I add a reference to CrystalDecisions.ReportSource.dll I see it references.

Then I can directly refer to this in my code and I can use intellisense to access properties and methods of the class library.

CrystalDecision.ReportSource.(intellisense brings up the properties and methods)

The wisest people are those who are smart enough to realize they don't know it all.
 
Thank you so much! I got it working now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top