DesktopContainer.FocusLost
From Xojo Documentation
Event
Called when the DesktopContainer has lost the focus.
Notes
The AllowFocus property must be set to True in order for this event to be called.
Called when the DesktopContainer has lost the focus.
The AllowFocus property must be set to True in order for this event to be called.