all groups > c# > june 2004 >
You're in the

c#

group:

How do I draw a color border on a Panel control


How do I draw a color border on a Panel control Patrick Blackman
6/30/2004 10:12:08 PM
c#: I would like to have a panel control which has the ability to have different
color borders, any idea how to accomplish this.

Thanks

Re: How do I draw a color border on a Panel control Tamir Khason
7/1/2004 9:44:15 AM
The simplest way is to use two panels one inside other with some pixels
space between their borders. You can color background color of bigger panel
to color you want so it will looks like colored border of the panel.
The other way is to build your cutom control derived from panel with
override of onPaint event and just draw using GDI+ border you want

Hope it helps

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "


[quoted text, click to view]

AddThis Social Bookmark Button