Is it possible to see the different colors (when using the graphics class) in a palette somewhere? It's hard to choose from the names only (DarkCyan, IndianRed ect, what is this!? :confused:)
Printable View
Is it possible to see the different colors (when using the graphics class) in a palette somewhere? It's hard to choose from the names only (DarkCyan, IndianRed ect, what is this!? :confused:)
Do you mean choosing colors at runtime? Or coding them in?
Coding them. I don't know how they look, I just have their names. I would like to correlate them. Otherwise I have to try each color sepreatly.
You could just click on the form then look to the properties window. Just use something like the backcolor property. I think you'll want to look at the 'Web' tab. It gives you the name of the color and then a little picture of what it looks like.
This is where i was talking about.
http://img695.imageshack.us/img695/521/thisqv.jpg
The name shown there is the name you would use to code in the color to the program.
If you are using VS2010 you might want to look for an extension. I haven't looked actively, but there might be a simple extension available that displays the color in the Intellisense dropdown. I know there is an excellent example extension available that completely customizes the Intellisense dropdown, so I would be surprised if nobody had used it to create something like this.
If not, you can always give it a shot yourself ;) I tried it but I don't know anything about WPF (the VS2010 IDE is made in WPF and so also the extensions must be) so the UI part of it was over my head and I gave up...
thanks for the tips! The Web tab worked fine. :wave: