Custom color in form

How do you give your form a custom color. I want to use a color that is not in the list - a non standard color.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi MdLittle

As you know, Color is of type TColor,
were  TColor is a specific 4-byte hexadecimal number. So you can assign
any value in this range to Color property.( for example  Color := $12345)
For more details look at Delphi Help

Regards, Victor
mdlittleAuthor Commented:
This does not result in the desired effect. I tried the following:

form1.color := $007A90BA
{and $017A90BA and $027A90BA}

This color is a light blue.

The result is an ugly shade of orange.

I want the blue color. Is it a pallet problem? If so how do I fix?

mdlittleAuthor Commented:
Adjusted points to 250
In object property editor,you setfocus in color property,and doubleclick your mouse then there will be a dialog for choose a custom color.
Select the color you favorite,then the Color property will change to a value
such as $00FF0080.Then you can record it and use it in your program

good luck


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mdlittleAuthor Commented:
Duh! I can't believe I missed that. Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.