Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active X Control for Color Palette

Status
Not open for further replies.

benwah

Technical User
Jun 27, 2001
97
GB
Hi all

Does anyone know of an axtive X control that would display a color pallete (similar to Color Builder) so that the user can choose a color on the fly?

At the moment I have the user enter the number code into a text box to change color properties but that isnt very user friendly....

Thanks
wah
 
Try placing a CommonDialog control on the form. You can then call this from a button click event like this:

MyCommonDialog.ShowColor

return your color value chosen by the user like this:

MyCommonDialog.Value = MyColorCode

You can then use this value to do what you want with.

HTH Jamie Gillespie
j-gillespie@s-cheshire.ac.uk
 
Thanks for the quick response.

Is this an access 2000 thing because ShowColor doesnt seem to work in 97. Or maybe I'm on totally the wrong track!

wah
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top