LostFocus Event
Object List Next Object
Defined By: Frame
Description:
Occurs when an object loses the focus. A control's focus can be lost by using
the mouse or TAB key to select a new control, or by using the SetFocus method
in code.
Usage:
Sub LostFocus()
Details:
A LostFocus event procedure is most commonly used for verification and
validation updates. For example, when a user leaves a control, you may want to hide it
or change it's color to indicate that it has lost focus. You can display,
enable, or hide other objects as a result of the LostFocus event as well. A
LostFocus event can also be used to undo certain things set in the GotFocus event.
See Also:
GotFocus event, SetFocus method, TabGroup property, TabStop property