locked
About System.Drawing.Color RRS feed

  • Question

  • User589874384 posted
    I was just wondering if i could generate different colors through a For loop. is it possible?
    Tuesday, October 14, 2008 2:36 AM

Answers

  • User-1313886874 posted

    hi keeler,

    i think this will help u.....

    http://wiki.asp.net/page.aspx/410/building-a-color-selector-control/

      

    private void BindFillColorslist()
    {
    // get the list of known colors
    System.Drawing.KnownColor[] colors =
    (System.Drawing.KnownColor[])System.Enum.GetValues(typeof(System.Drawing.KnownColor));
    //' add them to the drodownlist
    foreach (System.Drawing.KnownColor c in colors)
    {
    DropDownList1.Items.Add(c.ToString());
    }
    }
     

    if its helps u plz "Mark as Answer"

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 14, 2008 4:30 AM