Posted by : Rhyf Ahmad Saturday, May 09, 2015

Event handling is familiar to any developer who has programmed graphical user interfaces (GUI). When a user interacts with a GUI control (e.g., clicking a button on a form), one or more methods are executed in response to the above event. Events can also be generated without user interactions. Event handlers are methods in an object that are executed in response to some events occuring in the application.

To understand the event handling model of the .NET framework, we need to unterstand the concept of delegate. A delegate in C# allows us to pass methods of one class to objects to other classes that can call those methods. We can pass method m in class A, wrapped in a delegate, to class B and class B will be able to call method m. We can pass both static and instance methods.


Ebook Preview

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -