DesktopOLEContainer.DesignMode

From Xojo Documentation

Property (As Boolean )
aDesktopOLEContainer.DesignMode = newBooleanValue
or
BooleanValue = aDesktopOLEContainer.DesignMode

New in 2021r3

Supported for all project types and targets.

Indicates whether the container is in Design Mode.