Show contents 

Forms > Forms Assembly Interfaces > IControl > IControl.OnExit

OnExit

Syntax

OnExit(Sender: Object; Args: IEventArgs);

Parameters

Sender. The parameter that returns the component that has generated the event.

Args. The parameter that enables the user to determine event parameters.

Description

The OnExit event occurs when the component loses the focus (the focus is passed to another component).

Comments

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:

IControl