DesktopControl.Window

From Xojo Documentation

Read-Only Property (As Window )
WindowValue = aDesktopControl.Window

New in 2021r3

Supported for all project types and targets.

The control's parent window.

Sample Code

This code gets the parent window's Title property.

TextField1.Value = Me.Window.Title