Represents a common dialog box that displays available colors along with controls that allow the user to define custom colors.
Object
Component
CommonDialog
ColorDialog
[Visual Basic] Public Class ColorDialog Inherits CommonDialog [C#] public class ColorDialog : CommonDialog [C++] public __gc class ColorDialog : public CommonDialog [JScript] public class ColorDialog extends CommonDialog
The inherited member ShowDialog must be invoked to create this specific common dialog box. HookProc can be overridden to implement specific dialog box hook functionality. Use Color to retrieve the color selected by the user.
When you create an instance of ColorDialog, some of the read/write properties are set to initial values. For a list of these values see the System.WinForms.FontDialog.ColorDialog constructor.
Namespace: System.WinForms
Assembly: System.WinForms.dll
ColorDialog Members | System.WinForms Namespace | CommonDialog