|
-
Jul 23rd, 2008, 09:00 AM
#1
Thread Starter
Member
[RESOLVED] hex to color
Can anyone help me with this? I have a hex color that I need to convert color in .net.
Here is the color: "DBDBDB"
And I need to set the backcolor of a label to this color.
I have looked through the forum but no able to get anything working.
Thanks for your help.
-
Jul 23rd, 2008, 09:07 AM
#2
Re: hex to color
try this
Label1.BackColor = ColorTranslator.FromHtml("#DBDBDB")
__________________
Rate the posts that helped you 
-
Jul 23rd, 2008, 09:27 AM
#3
Thread Starter
Member
Re: hex to color
That works. Thanks for your help
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
|