Aracılığıyla paylaş


ColorDialog Component Overview (Windows Forms)

The Windows Forms ColorDialog component is a pre-configured dialog box that allows the user to select a color from a palette and to add custom colors to that palette. It is the same dialog box that you see in other Windows-based applications to select colors. Use it within your Windows-based application as a simple solution in lieu of configuring your own dialog box.

The color selected in the dialog box is returned in the Color property. If the AllowFullOpen property is set to false, the "Define Custom Colors" button is disabled and the user is restricted to the predefined colors in the palette. If the SolidColorOnly property is set to true, the user cannot select dithered colors. To display the dialog box, you must call its ShowDialog method.

See Also

Reference

ColorDialog

Other Resources

ColorDialog Component (Windows Forms)

Dialog-Box Controls and Components (Windows Forms)