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

Explain About remoting and web services. Difference between them

955


Define Abstract Class in C#

971


How does return work in c#?

972


List down the different ide’s provided by microsoft for c# development.

890


What is the implicit name and type of the parameter that gets passed into the class set method?

877


Is c# an open source?

931


Can hashtable have duplicate keys?

908


Can arraylist store different data types in c#?

1003


What is difference between const and static in c#?

992


Why delegates are type safe?

923


Difference between directcast and ctype.

1023


How many types of constructors are there?

893


How to implement singleton design pattern in c#?

894


Can a method be sealed in c#?

916


What does console readline do?

879