|
-
December 7th, 2002, 01:08 PM
#1
comparing background colours
is there a way to compare the background of 2 labels ?
if label1.background = label2.background then
doesn't work and I can't find a way to get the colour name into a string variable i.e.
dim colour as string
colour = label1.background
I'm sure there's a way, I am just drawing a complete blank
Thanks
Jym
-
December 8th, 2002, 09:58 AM
#2
Code:
If Label1.BackColor.ToString = Label2.BackColor.ToString Then
MsgBox("Same")
Else
MsgBox("Not same")
End If
/Leyan
-
December 8th, 2002, 10:14 AM
#3
well doesn't that make all the sense in the world :-)
Thank you
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
|