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
What are strongly typed objects?
What are generic types?
Is c# an open source?
What is the difference between Static, Const and read only?
Why do we need delegates in c#?
Is null c# operator?
Which controls do not have events?
who is a protected class-level variable available to?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
What is integer c#?
What is byte c#?
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
What is iformatprovider in c#?
what is the syntax to inherit from a class in c#?
What do you know about Translate Accelerator?