tags:

views:

329

answers:

2

What is the SystemColors of the Textbox's border?

A: 

In most cases (XP, Vista, Windows 7) - there is no correpsonding value. The text box is rendered by the Theme in use. When no theme is used - it uses the ControlLight and ControlDark values to render the 3D sunken border.

Paul Alexander
+1  A: 

If you need to set it in your code, don't use the SystemColors, use the VisualStyleInformation.TextControlBorder instead (look it up in MSDN).

Jaz