I put a common dialog control on my form.
See below code.
I click a command button (cmdColor01, brings up Common Dialog Color Selection)to pick a color.
I select a color and set the background of a text box (txtShowColor01) to show the color choice for comparison to the other 3, there will be 4 total.
I want a text box (txtColorValue.Text) to then display the HEX value of the color choice so I can later on in the program throw that value into an HTML page replacing a place holder the colors a table, some text or whatever.
What do I put where the '??????' are to get the HEX value of the color I selected?
Private Sub cmdColor01_Click()
txtShowColor01.BackColor = cmd.Color
txtColorValue.Text = ??????
Thanks in advance,