Home arrow C# arrow Event Handling With C#
C#

Event Handling With C#


C#'s event handling mechanisms are powerful and don't have to be complicated. In this article Deepak introduces us to the concepts of delegates, event handlers and GUI event handling using C#.

Author Info:
By: Deepak Dutta
Rating: 4 stars4 stars4 stars4 stars4 stars / 30
July 23, 2002
TABLE OF CONTENTS:
  1. · Event Handling With C#
  2. · Delegates in C#
  3. · Event Handlers in C#
  4. · GUI Event Handling
  5. · Conclusion

print this article
SEARCH DEVARTICLES

Event Handling With C#
(Page 1 of 5 )

In this article I discuss the event-handling model in .NET using C#. The discussion starts with an introduction to the concept of delegates and then it extends those concept to events and event handling in .NET. Finally, I apply these concepts to GUI event handling using windows forms.

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 occurring in the application. To understand the event-handling model of the .Net framework, we need to understand the concept of delegates, so letís look at them first...
blog comments powered by Disqus
C# ARTICLES

- Introduction to Objects and Classes in C#, P...
- Visual C#.NET, Part 1: Introduction to Progr...
- C# - An Introduction
- Hotmail Exposed: Access Hotmail using C#
- Razor Sharp C#
- Introduction to Objects and Classes in C#
- Making Your Code CLS Compliant
- Programming with MySQL and .NET Technologies
- Socket Programming in C# - Part II
- Socket Programming in C# - Part I
- Creational Patterns in C#
- Type Conversions
- Creating Custom Delegates and Events in C#
- Inheritance and Polymorphism
- Understanding Properties in C#

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials