I wrote a program to get Color from the ColorDialogBox and convert it into Hex value using ColorTranslator.ToHtml but then it doesn't return Hex value instead it returns the solid color name . Any way to fix this ?
Here's my code :
private void chooseClr_Click(object sender, EventArgs e) {
colorDialog1.ShowDialog();
Color checking = colorDialog1.Color;
string hexColor = ColorTranslator.ToHtml(checking);
MessageBox.Show(hexColor);
}