6.4. Inspecting and Generating Control Events

What additional events are associated with a TextBox control? More generally, how can we discover the set of events associated with a control?

To inspect the set of events associated with a control, we do the following: (1) click on the control to display its Properties window, and (2) in the Properties window, click on the yellow jagged lightning icon. The Properties window now displays the set of events associated with the current control (as Figure 6.10 shows).

Figure 6.10. TextBox-Supported Events

The entries on the left in the Properties window represent each of the events supported by the control. ...

Get C# Primer: A Practical Approach 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.