DesktopWindow.Opening
From Xojo Documentation
Event
The window is opening but hasn’t been displayed yet. Controls also receive Opening events. A window receives its Opening event after all of the controls have received their Opening events.
Notes
You should use the Opening event instead of the Constructor for initialization.
After the window opens and becomes the active window, the Activated event is called.