0

I have written my code in a CLASS LIBRABY file,now i need to call this on click of a button which is there on the windows form...
I am using Visual Studio2005
Please help me,i don't have any idea about how to do this:S

3
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by Prof.Mendl
0

You need to add a reference to the class library. Right click on References, click Add References..., click on the project tab, and add the library. This is assuming the class library is in the same solution. Also I am using 2008 express, so it might be slightly different.

0

That is ok,bt what do i write on the click event of the button

0

That depends on what namespace it is in and what you are doing, but you would call it the same way as if it was in the same project.

0

I dont knw hw to call tht class library,my nanespace is ExcelReadWrite

0

using this in your project,

using ExcelReadWrite;

then use your classes in that dll as usual , depending on the type of your classes.

Prof. Mendl

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.