Creating Event Handlers in the Windows Form Designer
Visual Basic 6 required that you switch to the code view to add event handlers for controls. This modality still exists in Visual Basic .NET.
Note
Beta versions of Visual Basic .NET also occasionally support managing events from the Properties view. Unfortunately, the Event button (see Figure 8.2) showed up in the Properties window in beta versions of Visual Basic .NET, although it was not supposed to. The Event button supports listing events in the Properties window and generating event handlers from the Properties window. Currently this behavior is only intentionally supported in C#.
Figure 8.2. Generate event handlers from the Event list in the Properties window.
Use the left two buttons ...
Get Visual Basic® .NET Unleashed 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.