putting struct properties into dropdownlist

Discussion in 'ASP .Net' started by Bishoy George, Oct 6, 2005.

  1. I want to make a dropdownlist that contains all colors of the struct Color.
    Is that possible?
    Bishoy George, Oct 6, 2005
    #1
    1. Advertising

  2. Bishoy George

    Guest

    You are going to want to use the System.Drawing.KnownColor enumeration

    DropDownList1.DataSource =
    Enum.GetNames(typeof(System.Drawing.KnownColor));
    DropDownList1.DataBind();
    , Oct 6, 2005
    #2
    1. Advertising

  3. Thank you.
    It worked properly.

    <> wrote in message
    news:...
    > You are going to want to use the System.Drawing.KnownColor enumeration
    >
    > DropDownList1.DataSource =
    > Enum.GetNames(typeof(System.Drawing.KnownColor));
    > DropDownList1.DataBind();
    >
    Bishoy George, Oct 6, 2005
    #3
    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. Saurabh
    Replies:
    6
    Views:
    4,499
    Chris Smith
    May 30, 2004
  2. Chris Fogelklou
    Replies:
    36
    Views:
    1,355
    Chris Fogelklou
    Apr 20, 2004
  3. Replies:
    18
    Views:
    7,039
    Karl Heinz Buchegger
    Jul 22, 2005
  4. slocum
    Replies:
    3
    Views:
    500
    slocum
    Apr 11, 2008
  5. Uli Kunkel
    Replies:
    49
    Views:
    1,115
    Dave Searles
    Oct 7, 2009
Loading...

Share This Page