SetColorDlgCustomColor Method

Description

Sets a Windows Color Dialog custom color cells value.

Syntax

Ctlname.SetColorDlgCustomColor (int nIndex, OLE_COLOR nColor)

Return Type

Boolean

Remarks

Use this method to set Windows Color Dialog Custom color cells color. nIndex must be from 0 to 15.

This function also can implement through CustomColors property, see also CustomColors property.

Samples

If ColorPicker1.SetColorDlgCustomColor(3, RGB(233, 12, 221)) then

' do something

End if