DefaultItemColor Property

Description

Returns/sets the default item color value.

Usage

[form.][control.]DefaultItemColor[ = OLE_COLOR]

Data Type

OLE_COLOR

Default

&H0 (Black)

Remarks

This property sets or returns default item color. This value can be any system color or specified color, user can use it to restore user’s choosing.

About this property usage, refer to Value, Color and WhoIsSelected properties.

This property dependences on EnableDefaultItem property, See also EnableDefaultItem property.

Sample

ColorPicker1.DefaultItemColor= GetSysColor(COLOR_WINDOWTEXT)

ColorPicker1.DefaultItemColor = RGB (255, 0, 0)