Canvas.Transparent

From Xojo Documentation

Property (As Boolean )
aCanvas.Transparent = newBooleanValue
or
BooleanValue = aCanvas.Transparent

Supported for all project types and targets.

If True, the background shows through to the Canvas; if False, the Canvas is opaque. The default is True.

Notes

Canvases by default are transparent controls, which means the background color shows through. The Transparent property can be set (at design time or runtime) to turn this off/on as needed. An opaque Canvas flickers less on Windows, is more optimized on macOS, and on Linux child controls on Canvases are clipped properly.

Windows

Controls placed behind a Canvas, regardless of the Transparent setting, will not be visible through the Canvas.

Sample Code

This code turns Transparent off:

Me.Transparent = False