• Welcome to Valhalla Legends Archive.
 

Color Chooser?

Started by Jaquio, March 10, 2006, 06:48 PM

Previous topic - Next topic

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?

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.

Jaquio

Thanks, didn't know Common Dialog Control had the showcolor function.