The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings

To create an event handler on the Windows Forms designer

Click the form or control that you want to create an event handler for.

In the Properties window, click the Events button ().

In the list of available events, click the event that you want to create an event handler for.

In the box to the right of the event name, type the name of the handler and press ENTER.

Note:

Name the event handler according to the functionality of the event; for example, for the Click event, you can type StartProcess as the event handler.

The Code Editor appears, showing the code for the form, and an event handler method is generated in your code similar to that shown in the following code example.