Deactivate Event

Applies To   See Also

Occurs when a container object, such as a form, is no longer active because none of its contained objects has the focus. For a toolbar, occurs when the toolbar is hidden using the Hide method.

Syntax

PROCEDURE Object.Deactivate

Remarks

The Activate and Deactivate events occur only when you are moving the focus within an application. Moving the focus to or from a form in another application doesn't trigger either event. The Deactivate event doesn't occur when unloading a form.

Whenever a new object is activated, either programmatically or interactively, the Deactivate event for the object previously active is triggered and the Activate event for the new object is triggered.