Color Dialog

K

Kerry

Hi all,

I want to have a color picker on a form. I tried the Common Dialog
Control, and it worked for most users, but some have problems. I
heard that using the ChooseColorAPI might be less buggy, so I am
trying that. I am not certain how to distinguish between the user
choosing a color of black, and the user clicking cancel. Can anyone
help?
 
T

Tom van Stiphout

On Wed, 18 Feb 2009 16:54:56 -0800 (PST), Kerry <[email protected]>
wrote:

From the docs about ChooseColor: If the user cancels or closes the
Color dialog box or an error occurs, the return value is zero.

-Tom.
Microsoft Access MVP
 
K

Kerry

Hi Tom,

Thanks, but I already knew that. The problem is when the user chooses
the color black, the return value is also 0. How can I distinguish
between the user clicking cancel, and the user choosing a color of
black?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top