Re: List Colors At Runtime

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Derek Hart" <derekmhart@xxxxxxxxx> wrote in message
news:eqxJxWKWIHA.5348@xxxxxxxxxxxxxxxxxxxxxxx
How would I list colors at runtime for System.Drawing.Color - I want to
give the user a list of choices at runtime, such as
System.Drawing.Color.AliceBlue (as an example of one color). I could
recreate this list in a database table and pull from it, but is there a
way to do this in code, to get a full list (for use in a combo, or however
I want to). It would even be useful to programmatically get this list
once to place it into a table. A lot of choices to recreate.

You will need to translate this to VB:


foreach(KnownColor col in Enum.GetValues(typeof(KnownColor)))
{
Color color = Color.FromKnownColor(col);
if(!color.IsSystemColor)
{
Console.WriteLine(col.ToString());
}
}


.



Relevant Pages

  • Re: [Info-Ingres] User Creation File
    ... Don't forget database privileges, ... Record Database Information ... for iidbdb created in Step 1 of the upgrade procedure. ... A file called users.sql is written that will recreate all users, ...
    (comp.databases.ingres)
  • Re: Lost all joins
    ... Plus all the fieldname in the field pane of the query design have ... >> I made a copy of a database which is made up of a front and back end. ... But when i checked the queries all joins between ... >> are gone and i have to recreate all those links for the queries to run. ...
    (microsoft.public.access.queries)
  • Change form layout from table to query?
    ... I have small access database... ... pull it from a query instead. ... I could just recreate the entire form.. ...
    (microsoft.public.access.forms)
  • Re: Strongly typed dataset
    ... When I call the update method it resets back to 1. ... I don't want to recreate my DAL object without ... my stored procedures but doing that seems to "append columns" to the ... If I add some columns to my database what is the best way of regenerating ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: External Tables
    ... Senior Oracle DBA ... database) provided the source files exist. ... effort to run a series of scripts to recreate such tables. ...
    (comp.databases.oracle.misc)