pres201
Jun 10th, 2002, 07:38 PM
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
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