Results 1 to 4 of 4

Thread: system colors

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    system colors

    VB Code:
    1. e.Row.Cells(5).BackColor = Drawing.Color.Red
    how can i set that to a html color code, i tried the obvious
    VB Code:
    1. e.Row.Cells(5).BackColor = "#ffcbcb"
    but this throws up an error

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: system colors

    ColorTranslator.FromHtml()

    You can pass it your hex color string.

  3. #3

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: system colors

    thanks

    You must spread some Reputation around before giving it to mendhak again.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: system colors

    They're asking you to be fruit fly and multiply.

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