I have a color dialog in visual studio, I am currently using this c# code to display the color dialog and set the color to a panel:
private void ColorButton_Click(object sender, EventArgs e)
{
if (colorDialog1.ShowDialog() == DialogResult.OK)
{
ColorPanel.BackColor = colorDialog1.Color;
}
}
How could I set a label to the hexadecimal color code of the color picker?