colour picker

  • Thread starter Thread starter Steven
  • Start date Start date
S

Steven

Can anyone direct me to a colour picker of the same (or similar quality) to
the default .NET one but one that encompasses ability to specify colour by
HEX value?
 
Steven,
Can anyone direct me to a colour picker of the same (or similar quality) to
the default .NET one but one that encompasses ability to specify colour by
HEX value?


Try
System.Windows.Forms.ColorDialog

That is what you want -- I think.

Regards,

Randy
 
Doesnt allow you to specify by hex though.

hehe, not outwith the realms of possiblitly but am i missing something
obvious?
 
Just translate each of the R, G, B byte properties into hex and concatenate
them together. I believe Convert.ToString(myColor.R, 16) should do it.
 
yep yep thanks for your replies.

i was already doing this. the point was the end colour if for a web page, so
i was already converting it.

however, id like to be able to give the user the choice to set it in the
first place by hex as they may already have this colour. yes i could add
extra texboxes somewhere or glean the information somehow... but how nice
would it be just to allow it from the nice swish colour dialog.

:)
 
Back
Top