Hour 4. Understanding Events


What You'll Learn in This Hour:

  • Understanding event-driven programming

  • Triggering events

  • Avoiding recursive events

  • Accessing an object's events

  • Working with event parameters

  • Creating event handlers

  • Keeping event names current

It's easy to produce an attractive interface for an application using Visual C# 2005's integrated design tools. You can create beautiful forms that have buttons to click, text boxes in which to type information, picture boxes that display pictures, and many other creative and attractive elements with which users can interact. However, that's just the start of producing a Visual C# program. In addition to designing an interface, you have to empower your program to perform actions in response both to how a user interacts with the program and how Windows interacts with the program. This is accomplished by using events. In Hour 3, "Understanding Objects and Collections," you learned about objects and their membersnotably, properties and methods. In this hour, you'll learn about object events and event-driven programming, and you'll learn how to use events to make your applications responsive.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net