Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

coding for delegates?

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


Please Help Members By Posting Answers For Below Questions

How do you create user defined data types in c#?

959


Explain how can I get around scope problems in a try/catch?

874


Is c# difficult to learn?

829


What is the differences between datagrid, datalist and repeater in .net?

941


Can we have 2 main methods in c#?

868


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?

894


Is null or empty in c#?

937


Can the accessibility of a type member be greater than the accessibility of its containing type?

903


Can structs in c# have destructors?

920


What does the dispose method do with the connection object?

922


Is c# still popular?

844


When should we use delegates in c#?

877


Distinguish between finally and finalize blocks?

869


What is difference between value and reference types in C#.NET

1043


What is the difference between add and addrange in c#?

961