D
dustamulet
When you create some controls such as a TextBox or a TreeView, they are
created with a bluish border around them (if u are using the default
blue windows XP style). I want to create a Label, and draw a border
around the label with the same border shown around the TextBox. How
can I do this?
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.
created with a bluish border around them (if u are using the default
blue windows XP style). I want to create a Label, and draw a border
around the label with the same border shown around the TextBox. How
can I do this?
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.