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 do I get an error (cs1006) when trying to declare a method without specifying a return type?
In gridview in editmode if we want to display information in one combobox based on
How Global.asax is used ?
Can we inherit private members of class in c#?
What is difference between string and stringbuffer in c#?
Which types of inheritances does c# support?
How to use the sreamReader class to read form a text file?
Can u list some style properties of List Box?
Is it not possible to store a boolean value as a variable?
How do you serialize in c#?
What is garbage collector and where should you use in .NET?
What is the output of TextWriterTraceListener redirected?
Explain states of a thread in c#?
Define multicast delegate in c#?
List the difference between the virtual method and the abstract method?