How do I draw a color border on a Panel control

  • Thread starter Thread starter Patrick Blackman
  • Start date Start date
P

Patrick Blackman

I would like to have a panel control which has the ability to have different
color borders, any idea how to accomplish this.

Thanks
 
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
 
Back
Top