retireve hexadecimal from colordialog?

justplainsoccer

Newcomer
Joined
Dec 3, 2003
Messages
14
how might i go about retrieving a hexadecimal number (#0000FF) from a color dialog. i got the dialog to open but i cant figure out what to use for hexa.
 
The Color struct has a method, ToArgb. The ColorDialog returns a Color object. Which is the color the user selected. Just convert that int to hex using ToArgb().ToString("x") and you should be good
 
Back
Top