How to set background color of button using ColorDialogBox?

By James J

Set background color for button using value from ColorDialogBox...

private void button1_Click(object sender, EventArgs e)
{
            ColorDialog cd =
new ColorDialog();
             cd.
ShowDialog();
            button
1.BackColor = cd.Color;
}

How to set background color of button using ColorDialogBox?  (559 Views)