Create event subscriptions
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
A UI control typically recognizes many events, but the application responds only to the ones it subscribes to.
Most controls and forms have a default event. For example, the default for a button control is the Click event, and the default for a form object is the Load event.
- To subscribe to an object's default event — Double-click the object on the Design Canvas.
- To subscribe to any event — Select the object on the Design Canvas and double-click the event name on the Events tab in the Properties view.
Unsubscribing to events
To delete an event subscription, simply delete the value (the method name) that appears for the event in the right column of the Events tab in the Properties view.
By default, deleting this event value removes the event-handling method, as well as the event subscription, from the ABL code. If you want to change this behavior so that the method is retained, you can do so either for all events or for specific selected events.
- To keep all event-handling methods when the corresponding subscription is deleted - Go to the Visual Designer Preferences page and clear the check box labeled Remove event handlers when no longer needed.
- To protect a specific event-handling method from deletion - Locate the method
declaration in the ABL source code. Immediately preceding the method, an
annotation appears:
@VisualDesigner. Delete this line.