Results 1 to 3 of 3

Thread: Change Forecolor

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Posts
    108

    Change Forecolor

    VB.Net for Webapp.

    Does anybody know change to Forecolor in code? I'd like to change the text color based on a certain category.

    Thanks

  2. #2
    Lively Member mindloop's Avatar
    Join Date
    Mar 2004
    Posts
    64
    VB Code:
    1. [control].forecolor = system.drawing.color.[color]
    2. 'or
    3. [control].forecolor = system.drawing.color.fromargb([alpha],[red],[green],[blue])

    where [control] is your control ,
    [color] a system predefined color and
    [alpha],[red],[green],[blue] byte values (0 to 255)
    [alpha] is alpha value and can be omitted
    ehmm...

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Posts
    108
    Thanks

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