Lucas Juan
Lucas Juan

Reputation: 371

How can I use and call a dll file in my C# program?

I downloaded the program here in this site which is a on screen keyboard.

http://www.codeproject.com/KB/miscctrl/touchscreenkeyboard/touchscreenkeyboard_src.zip

Am I right that for me to use this program or to add it in my existing c# program is to use only the dll?

If so how can I call it?

Upvotes: 0

Views: 98

Answers (3)

cosmoloc
cosmoloc

Reputation: 2994

In the Solution Explorer,
Under "References", right Click -> "Add Reference" -> "Browse" to your dll and add.
Now in your code file on the top, Add : "using yourdllname.dll"
And you can use the dll provided functions.

Upvotes: 1

user1968030
user1968030

Reputation:

See:

  1. In Solution Explorer, select the project.
  2. On the Project menu, click Add Reference.
  3. The Add Reference dialog box opens.
  4. Select the tab indicating the type of component you want to reference.
  5. In the top pane, select the component you want to reference, and then click the Select button. Press CTRL while clicking to select multiple components.

Upvotes: 2

Selman Genç
Selman Genç

Reputation: 101680

In your Solution Explorer, right Click your References under your Project, Click Add Reference, then Click Browse, find your .dll file and Add it to your references.

Documentation: How to: Add and Remove References in Visual Studio (C#)

Upvotes: 5

Related Questions