Setting color in ASP.Net

Discussion in 'ASP .Net Web Controls' started by M. Craig, Oct 30, 2003.

  1. M. Craig

    M. Craig Guest

    Is it possible to assign an object a color based on a value like "#CCCCCC"
    or "Gray", without using the Color.Red syntax?
     
    M. Craig, Oct 30, 2003
    #1
    1. Advertising

  2. M. Craig

    Alvin Bruney Guest

    You should use Color.FromName("#CCCCCC") instead.

    --


    -----------
    Got TidBits?
    Get it here: www.networkip.net/tidbits
    "M. Craig" <> wrote in message
    news:uWrL#...
    > Is it possible to assign an object a color based on a value like "#CCCCCC"
    > or "Gray", without using the Color.Red syntax?
    >
    >
     
    Alvin Bruney, Oct 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moondaddy
    Replies:
    3
    Views:
    38,991
    moondaddy
    Apr 28, 2004
  2. PJ6
    Replies:
    4
    Views:
    4,930
  3. Andrew Arace

    BGR Color to Java Color

    Andrew Arace, Sep 13, 2003, in forum: Java
    Replies:
    7
    Views:
    7,968
    Stephen Gilbert
    Sep 16, 2003
  4. fig000
    Replies:
    0
    Views:
    4,590
    fig000
    Sep 6, 2004
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    505
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page