So far I am drawing the border in the Paint method for the label using
ControlPaint.DrawBorder. However, I do not know how to get the exact
color that the TextBox uses for its border. I have enumerated through
all the System.Drawing.SystemColors, and it is not there?
Thanks for your help.
I think you should be able to find that color in the SystemColors
enumeration. Wonder why you're not able to find it...
Colors for a dark border usually are "ControlDark" or
"ControlDarkDark". For the "lighter" side of the border, they usually
are White or "ControlLight". I never use the Windows XP style (I prefer
Classic style), so can't say offhand.
Other ideas that come in my mind are :
1. Check the settings in the Display properties dialog box of Win XP.
You might find the color there.
2. You might try a Color Picker tool, and "pick" the color to determine
it's RGB values. Then use that color.
HTH,
Regards,
Cerebrus.