473,394 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How do I easily create an example chart of all colors

I know how to get all the colour names by looping through
the KnownColors enumeration. But how can I use that to
actually get the colours, e.g. by adding a grid item for
each colour and changing the items' back colours to each
of the KnownColors.

Regards
/Grober
Nov 15 '05 #1
2 1230
Grober,

You can get the color for that color name by passing the enumeration
value to the static FromKnownColor method on the Color structure.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Grober" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I know how to get all the colour names by looping through
the KnownColors enumeration. But how can I use that to
actually get the colours, e.g. by adding a grid item for
each colour and changing the items' back colours to each
of the KnownColors.

Regards
/Grober

Nov 15 '05 #2
Thanks, it worked. I also found the
ColorConverter.ConvertFromString method which I could use
on the string array I created from the KnownColors
enumaration.

So many methods, so little time...

Regards
/Grober
-----Original Message-----
Grober,

You can get the color for that color name by passing the enumerationvalue to the static FromKnownColor method on the Color structure.
Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Grober" <an*******@discussions.microsoft.com> wrote in messagenews:09****************************@phx.gbl...
I know how to get all the colour names by looping through the KnownColors enumeration. But how can I use that to
actually get the colours, e.g. by adding a grid item for each colour and changing the items' back colours to each of the KnownColors.

Regards
/Grober

.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Wolfgang Kreuzer | last post by:
Hello all, I have two tables - Projects and ProjectStruct Table Projects contains master records of the projects, ProjectStruct allows to define a project herarchie and contains the fields...
2
by: Dave | last post by:
I'm trying to follow the examples in VBAGRP9.CHM and/or VBAGR10.CHM with no success. I'm trying to Chage the Legend Colors based on Content so that I can establish a certain color format on...
1
by: Daniel | last post by:
Hi all, If i need to create chart with the existing library in vs.net2003, how to call it out and use it. Any example? If i need to create more complicated chart, the exsiting library in vs.net...
0
by: pmclinn | last post by:
The code below takes the data from the S column and grabs all the data and graphs it. The problem is this example grabs 500 cells worth of data and some of these cells = nothing. How do I rescope...
0
by: ImageAnalyst | last post by:
Have you ever wondered what the colors are of those dozens of colors you can choose from when using System.Drawing.Color.* ? I ran across this nice chart that shows color patches of all of them: ...
0
by: JohnnyB | last post by:
I've been wrestling with this off and on for a few days and came close but it's still not right. I'll try to explain it as best I can. I created a report with a pie chart on the first page that...
1
Walt in Decatur
by: Walt in Decatur | last post by:
Is there a way to control Access charts to the degree that can be done in Excel? Specifically, I would like to be able to define colors and use the DLookUp function to define the input for the axis...
0
by: damian.mcbride | last post by:
I am using C# to take data from a database and place in an Excel 2003 spreadsheet. Depending on the user query the data can be anything from a few rows to 1000 rows. The Excel 2003 sheet is a...
1
by: Néstor Sánchez A. | last post by:
....for visually identify colors. TIA. NSA.
5
by: CoreyReynolds | last post by:
Hello all, I have some VB code that spits an Access query out into Excel and attempts to create a chart from it. The problem is it spits it into a format that Excel can't really eloquently make a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.