Control.Window

From Xojo Documentation

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

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