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, then double-click the Value column or press Ctrl+Enter. The Code editor opens with the cursor inside the skeleton event handler, or begin...end block.
- At the cursor, type the code that you want to execute when the event occurs.