Generating a New Event Handler
You can generate skeleton event handlers for forms and other components.
To create an event handler
- Select a component.
- Click the Events tab in the Object Inspector. The Events page of the Object Inspector displays all events defined for the component.
- Select the event you want, and then either double-click the Value column or press
Ctrl+Enter. The Code Editor opens with the cursor inside the skeleton event handler.
- At the cursor, type the code that you want to execute when the event occurs.