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
Is lazy thread safe c#?
Does unity require coding?
How many bytes is a char c#?
What are functions in c#?
What is default boolean value in c#?
You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?
Can a struct inherit from another struct or class in c#?
What is the difference between ienumerable and enumerable?
How many digits are in an integer?
What is session and cookies in c#?
Explain the mechanism of VB.NET/C# achieve polymorphism?
Illustrate serialization?
What is decimal in c#?
How to find type of variable?
What is difference between destructor and finalize?