System.Windows.Forms.ColorDialog Class

Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.

See Also: ColorDialog Members


public class ColorDialog : CommonDialog


The inherited member CommonDialog.ShowDialog must be invoked to create this specific common dialog box. CommonDialog.HookProc(IntPtr, int, IntPtr, IntPtr) can be overridden to implement specific dialog box hook functionality. Use ColorDialog.Color to retrieve the color selected by the user.

When you create an instance of System.Windows.Forms.ColorDialog, some of the read/write properties are set to initial values. For a list of these values, see the ColorDialog.#ctor constructor.


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0,