Creating Event Handlers in the Code Editor

At the top of the Code editor, there is an Objects drop-down list on the left and an Events drop-down list—called Procedure list in VB6. The Objects and Procedures (or Events) controls existed in the Code editor in VB6, too (see Figure 8.3). To create an event handler in VB6 as well as Visual Basic .NET, select an object from the list on the left and the event from the list on the right. The Code editor generates the event procedure for you automatically.

Figure 8.3. Create an event handler in the Code editor by selecting the class and method names.

In VB6, the mechanism for wiring event procedures to ...

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.