Hi I was wondering if it is possible to display the color selected in a color dialog as a HTML HEX color in a text box?
Printable View
Hi I was wondering if it is possible to display the color selected in a color dialog as a HTML HEX color in a text box?
Try this.
VB Code:
If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then MessageBox.Show(Drawing.ColorTranslator.ToHtml(ColorDialog1.Color)) End If
thank you!