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

Why to use “using” in c#?

1138


What are the different types of constructors in c#?

1177


Explain metadata in c#.

938


What is the difference between integer and double?

969


What are the fundamental differences between value types and reference types?

1113


Which is the best language for desktop application?

1011


How do you clear a list in c#?

956


What is using keyword in C#?

1079


What is use of abstract class in c#?

981


What is delimiter in c#?

945


What is datacontract in c#?

938


Why do I get a "cs5001: does not have an entry point defined" error when compiling?

1036


Explain how obfuscator works in .net

1061


Write the syntax for catching an exception in c#?

931


Is c++ or c# better?

1000