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
Why to use “using” in c#?
What are the different types of constructors in c#?
Explain metadata in c#.
What is the difference between integer and double?
What are the fundamental differences between value types and reference types?
Which is the best language for desktop application?
How do you clear a list in c#?
What is using keyword in C#?
What is use of abstract class in c#?
What is delimiter in c#?
What is datacontract in c#?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
Explain how obfuscator works in .net
Write the syntax for catching an exception in c#?
Is c++ or c# better?