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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.