Hour 4

1: Name three things that can cause events to occur.
A1: The operating system, a user, objects
2: True or False: All objects support the same set of events.
A2: False. Each object supports a set of events specific to itself, or no events at all.
3: What is the default event type for a button?
A3: Click
4: Writing code in an event that causes that same event to be triggered, setting off a chain reaction with the event triggered again and again is called what?
A4: Recursion
5: What is the easiest way to access a control's default event handler?
A5: Double-click the control in the form designer.
6: All control events pass a reference to the control causing the event. What is the name of the parameter that holds this reference?
A6: Sender

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.