Library tutorials & articles
Event Handling in .NET Using C#
Conclusion
Other popular object oriented languages like, Java and Smalltalk do not have the concept of delegates. It is new to C# and it derives its root from C++ and J++. I hope that the above discussions will clear this concept to programmers who are starting out C# as their first object oriented language. If you are using Visual Studio IDE for your C# GUI development, attaching your delegate methods to the events generated by GUI controls (like mouse click on a button) can be done without you writing the code. Still, it is better to know what is going on under the hood.
Related articles
Related podcasts
-
Object-Oriented Programming in Ruby
In this episode, I talk with Scott Bellware about object-oriented programming in Ruby, and Ruby's object model. This is taken from a private conversation, and the audio quality suffers at times. Much thanks to Scott for allowing this to be released.This episode of the Alt.NET Podcast is bro...
Events coming up
-
Dec
7
An Event Apart San Francisco 2009
San Francisco, United States
From the makers of A List Apart: An Event Apart is an intensely educational two-day conference for passionate practitioners of standards-based web design. If you care about code as well as content, usability as well as design, An Event Apart is th...
While it's very nice to know the "How" when explaining syntax, more importantly is they "why" in terms of practical real-life use within a C# application. It would be nice of you would have included some true examples of when you would need to use one and why.
This is one of the best articles i have come across on Delegates and Event.. Good Job!
Line:
public class MyEventArgs EventArgs {
should read:
public class MyEventArgs : EventArgs {
Otherwise, great article!
Can anyone help me pls!!!
I am facing a big problem to code the gui buttons!! I am doing a C# project. this project consists of a telephone graphical user interface!!
can anyone tell me what can i do to code the number buttons to display the telephone number into a textfield...
I need this urgent plsssss!!!!!!
Thanks for your help!!!!!!
I need to know how can I trap an Outlook Event (Saving an Item) using C#. Any example will be highly appreciated.
Thanks in advance!!
How can I create asynchrous events?
Using delegates and events I get synchronous calls?
Please advise.
I am using certain, COM Components, I need to know the delegate signature, to create event handler. Is there any tools to do this? or if I need to do manually which is the easiast way to know the exact signature of those events raised by the COM components.
Very good example. it can be better hadling browser events, with .NET of course.
This thread is for discussions of Event Handling in .NET Using C#.