8.4. BackColor, ForeColor Properties

Description

BackColor - returns or sets the background color of the control.

ForeColor - returns or sets the foreground color of the control.

Syntax

HRESULT get_BackColor(HANDLE handle, LONG color);
HRESULT put_BackColor(HANDLE handle, LONG* pColor);
HRESULT get_ForeColor(HANDLE handle, LONG color);
HRESULT put_ForeColor(HANDLE handle, LONG* pColor);

Remarks

For opening systems we strongly recommend to set the background color to solid white (0xFFFFFF) and foreground color to black (0x000000). Note: barcode requires decent contrast between the foreground color and the background color in order to be readable. Always test the readability thoroughly when you select a color pair different from black and white.