Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Jaquio on March 10, 2006, 06:48 PM

Title: Color Chooser?
Post by: Jaquio on March 10, 2006, 06:48 PM
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?
Title: Re: Color Chooser?
Post by: RealityRipple on March 10, 2006, 07:08 PM
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.
Title: Re: Color Chooser?
Post by: Jaquio on March 10, 2006, 10:09 PM
Thanks, didn't know Common Dialog Control had the showcolor function.