SelectDefault Method

Description

Select the default item from the popup window.

Syntax

Ctlname.SelectDefault

Return Type

Boolean

Remarks

Use this method to select default color item, there will return False if failed to select the default color item, for example, this control EnableDefaultItem property is False,

This method invoking does not need popup window visible.

This action will change WhoIsSelected property value to CPWhoIsSelected.ccDefault (0).

Samples

If ColorPicker1.SelectDefault then    ' to select default color item

If ColorPicker1.IsWhoSelected = CPWhoIsSelected.ccDefault then

Picture1.BackColor = ColorPicker1.DefaultItemColor

End if

End if