bramsquad
asked on
label border color
this seems like a really easy question, but i cant find the property
my form has a black background, so what i want is a label with a black background as well, except i want the label to have a yellow border around it.
borderstyle is set to fixed single, however when i change the fore and back color, it doesnt seem to change the color of the border.
thanks!
my form has a black background, so what i want is a label with a black background as well, except i want the label to have a yellow border around it.
borderstyle is set to fixed single, however when i change the fore and back color, it doesnt seem to change the color of the border.
thanks!
Ok.. there is a link you can use....
I never tried that, but you can try..
http://www.syncfusion.com/FAQ/WinForms/FAQ_c41c.asp#q609q
-Baan
I never tried that, but you can try..
http://www.syncfusion.com/FAQ/WinForms/FAQ_c41c.asp#q609q
-Baan
Hi bramsquad:
What about placing your label inside a yellow BackColored GroupBox.
If you arrange its Size properties so that it nearly covers the GroupBox, you might get the effect you are looking at.
If you like this, then you can create your own usercontrol.
Dabas
What about placing your label inside a yellow BackColored GroupBox.
If you arrange its Size properties so that it nearly covers the GroupBox, you might get the effect you are looking at.
If you like this, then you can create your own usercontrol.
Dabas
You could also subclass a label control, and draw your own border by overriding the paint routines.
Dear bramsquad,
simple thing to do.. place a label which have background color yellow and put another lable( some what smaller in size)over it which have back ground color black ... now you can see label with yellow border.
nikelsh
simple thing to do.. place a label which have background color yellow and put another lable( some what smaller in size)over it which have back ground color black ... now you can see label with yellow border.
nikelsh
nikelsh:
Very similar to the idea I presented.
I think putting a label inside a groupbox has the advantage that if you want to drag and move this new type of label, when you drag the groupbox it will drag the label within it, which does not happen if you drag your outer label.
Dabas
Very similar to the idea I presented.
I think putting a label inside a groupbox has the advantage that if you want to drag and move this new type of label, when you drag the groupbox it will drag the label within it, which does not happen if you drag your outer label.
Dabas
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OK
ASKER
i was going to split points between the accepted comment and the second comment, but since they are by the same person, i didnt.
thanks everyone for your input.
thanks everyone for your input.
ASKER