Solved

How to determine the color of a control.

Posted on 2006-10-21
1
221 Views
Last Modified: 2010-04-23
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.
0
Comment
Question by:peispud
1 Comment
 
LVL 29

Accepted Solution

by:
Nightman earned 125 total points
ID: 17779847
if YourControl.BackColor().Equals(Color.Red) then
'do something
else
'do somethingelse
endif
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question