Window.Minimize event
From Xojo Documentation
Event
The window has been minimized.
Notes
This event is called when the Minimize method is called or when the user choose to minimize the window using the window buttons or menu item.
A minimized window is still returned by the Window method and it is possible that it is the front-most (0 position) window.