OLEContainer.DesignMode

From Xojo Documentation

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

Supported for all project types and targets.

Indicates whether the container is in Design Mode.