Description
Select a color cell from the popup window.
Syntax
Ctlname.SelectColorBox (int nRow, int nCol)
Return Type
Boolean
Remarks
Use this method to select a color cell from popup window color box, selected color can be get from Value or Color property, nRow and nCol must be Integer, and smaller than ColorBoxDimension, or this method will return False
This method invoking does not need popup window visible.
This action will change WhoIsSelected property value to CPWhoIsSelected.ccColorBox (1).
Samples
' assume ColorBoxDimension is cc8x8
If ColorPicker1.SelectColorBox(3, 1) then ' to select color cell row 3 and col 1
If ColorPicker1.IsWhoSelected = CPWhoIsSelected.ccColorBox then
Picture1.BackColor = ColorPicker1.Value
End if
End if