Skip to Content
.NET Windows® Forms Custom Controls
book

.NET Windows® Forms Custom Controls

by Richard Weeks
January 2002
Intermediate to advanced
288 pages
5h 48m
English
Sams
Content preview from .NET Windows® Forms Custom Controls

Events

Events are one of the more interesting additions to VB .NET and are an integral part of the C# language and the .NET platform. The event mechanism provides a method of communication or notification between objects. Consider the Windows Forms Button control. When a mouse-click event occurs, the button notifies any subscriber that a Click event has occurred. The subscriber can then perform processing based on the event received from the publisher of the event.

Subject-Observer

The event paradigm is an implementation of the Subject-Observer pattern. In the Subject-Observer model, also known as Publish-Subscribe, the Subject notifies registered Observers when the state of the Subject has changed. Figure 2.5 shows a UML, or Unified Modeling ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Roger Villela
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 0672323338Purchase book