Window.Activate
From Xojo Documentation
Event
The window is being activated.
Notes
In an app with multiple windows, the Activate event fires each time the window becomes the frontmost. This includes when it opens. When the window first opens, the Open event fires prior to the Activate event. Subsequent activations fire the Activate event but not the Open event.