I think Jim wanted a system color, like ButtonFace, ActiveCaption...In the
framework, these colors are called KnownColor and can be obtained like this
:
Color c = Color.FromKnownColor(KnownColor.ButtonFace)
which can then be used in the Pen constructor.
BTW, why do you need to dispose the pens ? It's managed. The Pen destructor
releases its resources.
Fabien
"Chris Dunaway" <du******@gmail.com> a écrit dans le message de news:
11*********************@z14g2000cwz.googlegroups.c om...
Have you considered using the Pens class and using a predesigned pen?
There are pens defined already for the system colors. For example:
Pens.Blue
Otherwise, you can select the color by name:
Pen pen = new Pen(Color.Blue)
Be sure to dispose of your pens when you are done using them.