From Xojo Documentation

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

Property (As Color )
aDesktopWindow.BackgroundColor = newColorValue
ColorValue = aDesktopWindow.BackgroundColor

New in 2021r3

Supported for all project types and targets.

The background color for the object. The HasBackgroundColor property, must be set to True to have the BackgroundColor displayed.

Sample Code

This code sets the DesktopWindow.HasBackgroundColor property and sets the value of the BackgroundColor property:

Me.HasBackgroundColor = True
Me.BackgroundColor = &c110034