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
How do you create user defined data types in c#?
Explain how can I get around scope problems in a try/catch?
Is c# difficult to learn?
What is the differences between datagrid, datalist and repeater in .net?
Can we have 2 main methods in c#?
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
Is null or empty in c#?
Can the accessibility of a type member be greater than the accessibility of its containing type?
Can structs in c# have destructors?
What does the dispose method do with the connection object?
Is c# still popular?
When should we use delegates in c#?
Distinguish between finally and finalize blocks?
What is difference between value and reference types in C#.NET
What is the difference between add and addrange in c#?