NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ColorDialog Class

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

Remarks

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.

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

See Also

ColorDialog Members | System.WinForms Namespace | CommonDialog