Home arrow C# arrow Page 5 - 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# - Conclusion
(Page 5 of 5 )

Other popular object oriented languages like Java and Smalltalk do not have the concept of delegates. The delegate is new to C# and it derives its roots from C++ and J++. I hope that this article has helped clear the confusion commonly surrounding delegates for programmers who are just starting out with C# as their first object oriented language.

If you are using the Visual Studio IDE for your C# GUI development, attaching your delegate methods to the events generated by GUI controls (like a mouse click on a button) can be done without writing any code. Still, it is better to know what is going on under the hood just in case you might need it some time.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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