Results 1 to 3 of 3

Thread: [RESOLVED] hex to color

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    33

    Resolved [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.

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: hex to color

    try this

    Label1.BackColor = ColorTranslator.FromHtml("#DBDBDB")
    __________________
    Rate the posts that helped you

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    33

    Resolved 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
  •  



Click Here to Expand Forum to Full Width