0

I need to call d class library on the click event of button,its in the same project,I don't know hw to call this,please tell me the steps which i need to follow for this,plz give sm examples,i m new to this....

2
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by ddanbe
0

I hv written my code in the class file,nw i need to call this class file on windows form,on the click of a button,i dnt knw hw to do this........

0

First : stop writing sms-english, I don't like that.
Second : what I can decypher from your phrasing is that you have a button on a form and you want to call code you have written in a separate class. Am I correct?

0

I want to call this class Library file in my Windows Form,on the click event of the button

0

Something like this?

private void MyButton_Click(object sender, EventArgs e)
{
    MyClass TheClass = new MyClass(); //make instance
    TheClass.Method1(); //execute method 
}
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.