|
-
Jun 10th, 2002, 07:38 PM
#1
Thread Starter
Junior Member
.BackColor Comparison?
Hey all....
If someone comes up with the answer to this quick, I'd like to know how to search for strange problems like this in the MSDN...
A simple comparison operation. I want to perform a certain operation if a label's BackColor property is set to a certain color, ie. Color.Transparent. So logically I do the following:
label.BackColor = Color.Transparent
'.... some code ....
If (label.BackColor = Color.Transparent) Then
'...
End If
But I get an error stating that the '=' operator isn't defined by System.Drawing.Colors. This isn't making much sense. Not too sure how I can get the logic to work without some dumb workarounds if I can't compare colors. Anyone?
Regards,
Brian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|