comparing a control's color

quarque
10-21-2005, 04:21 PM
What is the correct method for comparing the color of a control to the system colors. I have code that changes a Button's color on certain events and later on I want to read what the current color of the button is. I have tried using syntax like: if button.forecolor = xxxx then ...
(where xxxx is various color references). I have tried other operators beside "=". Everything gives me a syntax error when I try to put it in an IF...THEN statement.

Wraith Daquell
10-21-2005, 04:24 PM
You could try Button.Forecolor.Equals(xxxx) .

quarque
10-21-2005, 04:32 PM
ah. thank you.

Wraith Daquell
10-21-2005, 05:15 PM
What, did something I posted actually work!!??

Finally... :P

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum