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?

[Webinar] Streamline your web hosting managementRegister Today

hubdogConnect With a Mentor Commented:
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

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
mdlittleAuthor Commented:
Duh! I can't believe I missed that. Thanks!
All Courses

From novice to tech pro — start learning today.