Windows form label border...

J

Joneleth

Hi,

sorry for that kind of a silly question, but j just got crazy finding
a way to display a transparent label with a SIMPLE white border on a
form with a dark backgrond color.
I'd like to achieve that without writing any code such as handle the
OnPaint event or anything like that (if possible), and i've already
tried to set the label borderstyle to fixedSinge, but this won't
display anything at all.
I've found that the only way to have the label border really displayed
and visible is to set the borderstyle property to fixed3D, but the
border would be, of course, 3D and i don't want that kind of effect.
Is there any way to do that? Any clues?

Thanks.
 
C

ClayB

Just something to try. Use a panel with no border, its Padding set to
the size of the border you want to see, and its BackColor set to the
Color you want to see. Then put your label with no border dock.Fill
into the panel. This should show a colored border around the label,
and I think you can do all these steps from the designer.

==============
Clay Burch
Syncfusion, Inc.
 
J

Joneleth

ClayB ha scritto:
Just something to try. Use a panel with no border, its Padding set to
the size of the border you want to see, and its BackColor set to the
Color you want to see. Then put your label with no border dock.Fill
into the panel. This should show a colored border around the label,
and I think you can do all these steps from the designer.

Thank you ClayB,
i haven't even thought about that workaround,
that is indeed simple and it works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top