Version

ShowColorChooserDialog(Boolean,Color) Method

Shows a Color Chooser dialog so that the user can choose a custom color. The chosen color will be added to the list of user-defined colors.
Syntax
'Declaration
 
Public Overloads Sub ShowColorChooserDialog( _
   ByVal useForeColor As Boolean, _
   ByVal initialColor As Color _
) 
public void ShowColorChooserDialog( 
   bool useForeColor,
   Color initialColor
)

Parameters

useForeColor
True if the user is setting the ForeColor. False for setting the BackColor.
initialColor
The initial selected color. If this is set to Color.Empty, then the ForeColor or BackColor will be used, based on the useForeColor parameter.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also