Answer Posted / navin c. pandit
Here is the code how to add a delegate:-
Button_Id.OnClick += new EventHandler(function_name());
where function_name() is the name of the method that you
want to call.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a class have static constructor?
Explain more on CLR
What is the process of delegation?
What does using do in c#?
Explain About friend and Protected friend
Why is c# used?
What is decimal in c#?
How can we make a thread sleep for infinite period ?
Is comparator a functional interface?
What is an assembly qualified name
What is the meaning of 0 in c#?
How will you deploy the dll file in gac?
How do you specify a custom attribute for the entire assembly?
What is form feed and carriage return?
in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?