Compare a Color?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

How to I compare a Color, for example the CaptionBackColor of a DataGrid to
see if it is a specific Color?

The "Is" or "=" does'nt work

regards
/Lars Netzel
 
Hi Lars,

That intrest me, why would you want to know what is the colour?

You can test it by the way, by doing it tostring and than normal with the
=.

I hope this helps?

Cor
 
Cause I have a Settings Feature where you can select colors in the datagrids
to format yourself that is saved to the registry. ButIf I run the
application the first time, the registry entries are not there and the
Loaded color will then be transperent. So I need to check if it is
transperent, then don't load the settings.

I know I could also check if the Registry Key exists or even during the
installation, add the registry key, but for now I wanted to check it on the
color!

Thanx!

/Lars
 
Back
Top