Friday, 22 February 2013

How to add a DLL file?

One Just need to add "Classlibrary" from file >new project tab..
After you write your code click Build Solution in Build tab.

Then you click on project name in solution explorer and click show all files options

and now you can see two file bin and obj
Expand bin and then debug you will find your .dll file..

Now for using it close your current "classlibrary" project and open new project say "windowsapplication" add a button on form and go to code window..
Here click project option in menu bar and got to add reference options .Here you   click browse tab and now you browse to the location where you have saved your file and click OK.
you are ready to use your self made .dll file..

No comments:

Post a Comment