Deactivate Event

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. For a ProjectHook, occurs when you click away from the Project window or issue an ACTIVATE WINDOW command for a different window.

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.

See Also

Activate Event | Hide Method | LostFocus Event | Show Method | Visible Property

Applies To: Form | FormSet | Page | ToolBar | ProjectHook Object