RGB( ) Function

Example   See Also

Returns a single color value from a set of red, green, and blue color components.

Syntax

RGB(nRedValue, nGreenValue, nBlueValue)

Arguments

nRedValue

Specifies the intensity of the red color component. nRedValue can range from 0 to 255. Zero is the minimum color intensity; 255 is the maximum color intensity.

nGreenValue

Specifies the intensity of the green color component. nGreenValue can range from 0 to 255.

nBlueValue

Specifies the intensity of the blue color component. nBlueValue can range from 0 to 255.

Remarks

The value returned by RGB( ) can be used to set color properties such as BackColor and ForeColor.