Chapter 8. Mouse Interaction

The example programs presented so far in this book have all been comprised of a Form object, which itself is derived from the Control class, with one or more child Control objects on the form. None of the examples has included any explicit code for implementing mouse support (other than Click event handlers), yet all support the mouse in the manner you would expect of a Windows application. This is because all members of the Control class handle the mouse of their own accord. They also have properties, methods and events for extending mouse support when the standard behavior is insufficient.

Get Programming .NET Windows Applications 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.