DesktopContainer.Parent

From Xojo Documentation

Read-Only Property (As Object )
ObjectValue = aDesktopContainer.Parent

New in 2021r3

Supported for all project types and targets.

The containing control, if any.