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 you inherit from a sealed class?
What do you mean by synchronous and asynchronous operations?
What are c# i/o classes?
Write a program to find the angle between the hours and minutes in a clock
The int maps to which C# keyword in .NET type?
Distinguish between continue and break statement?
Why do we use struct in c#?
Do events have return type c#?
What is difference between il and dll ?
What is the difference between a private assembly and a shared assembly?
Classes and structs can be declared as static, is this statement true or false?
how encapsulation is implemented in c#
what is a enumeration in c#
What are namespaces, and how they are used?
Why do we need singleton pattern in c#?