Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to determine the color of a control.

Posted on 2006-10-21
1
Medium Priority
?
232 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 500 total points
ID: 17779847
if YourControl.BackColor().Equals(Color.Red) then
'do something
else
'do somethingelse
endif
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

824 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