DesktopCanvas.Backdrop

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Picture )
aDesktopCanvas.Backdrop = newPictureValue
or
PictureValue = aDesktopCanvas.Backdrop

New in 2021r3

Supported for all project types and targets.

The passed Picture that will automatically be drawn into the area.

Notes

You should not assign a new picture to the backdrop of the control when being inside the Paint event of that control. This can lead into problems like the backdrop not being painted.

Sample Code

The following code assigns a jpg image to the Backdrop. The image has been added to the project. The code is in the Opening event.

Me.BackDrop = HouseImage