Valhalla Legends Forums Archive | Visual Basic Programming | Color Chooser?

AuthorMessageTime
Jaquio
Alright, how would I go about creating something along the lines of when you rightclick on a color for a custom color in VB6? I want it to return that color value.. How would I do this exactly?
March 11, 2006, 12:48 AM
RealityRipple
Depends. If you want to use the Windows Common Dialog Control, you can do

cdlColor.ShowColor
lngColor = cdlColor.Color

This will pop up a common color chosing window for you. If you want to use your own color choosing method, I'd say make lots of picture boxes (or lots of dots on a big picture box), and then set the color to a value based on which object they clicked.
March 11, 2006, 1:08 AM
Jaquio
Thanks, didn't know Common Dialog Control had the showcolor function.
March 11, 2006, 4:09 AM

Search