BackColor

This property returns and sets the background color of an object.

Syntax

object.BackColor [= color]

Parameters

object
Object expression that evaluates to a form or control.
color
Background color of an object, specified by the RGB function or the system color constants.

Remarks

By default, BackColor is set to the system default color specified by the constant vbWindowBackground. If you set the BackColor property on a Form object, all text and graphics, including the persistent graphics, are erased.

To display text in the Windows CE operating environment, both the text and background colors must be solid. If the text or background colors you have selected are not displayed, one of the selected colors may be dithered—that is, comprised of up to three different-colored pixels. If you choose a dithered color for either the text or background, the nearest solid color will be substituted.