Finally: If OK was clicked, the parent form's background color is set to the color selected in the dialog.
Example that uses ColorDialog control: C#
public partial class Form1 : Form
private void Form1_Load(object sender, EventArgs e)
// Show the color dialog.
DialogResult result = colorDialog1.ShowDialog();
// See if user pressed ok.
if (result == DialogResult.OK)
// Set form background to the selected color.
this.BackColor = colorDialog1.Color;
Properties. The ColorDialog allows you to open a more complete color picker to the right side with a button by default. If AllowFullOpen is set to False, this button is disabled.
And: If FullOpen is set to True, the full color picker is shown automatically when the ColorDialog is opened.