How to determine the color of a control.

peispud
peispud used Ask the Experts™
on
Hi.

I have a button control.   How can I test to see if it's color is red.

I've looked around but obvioulsy not using the right search criteria.

Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
if YourControl.BackColor().Equals(Color.Red) then
'do something
else
'do somethingelse
endif

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial