Forms > Forms Assembly Interfaces > IControl > IControl.OnExit
OnExit(Sender: Object; Args: IEventArgs);
Sender. The parameter that returns the component that has generated the event.
Args. The parameter that enables the user to determine event parameters.
The OnExit event occurs when the component loses the focus (the focus is passed to another component).
The event does nor occur when switching between forms or applications.
When switching between components placed in different containers, the OnExit event occurs first for the component, then for the container, which contains the component.
The use of the OnExit event is unavailable for the Label component.
See also: