Or subclassing and drawing the border yourself using GDI.
Cheers
Simon.
> There are a couple of ways to achieve this...
>
[quoted text clipped - 11 lines]
> could
>> just use styles. Anything for panels in winforms?
Or just hook up into Paint event of a Panel and draw the border. Something
like that:
panel1.Paint+=new PaintEventHandler(panel1_Paint);
private void panel1_Paint(object sender, PaintEventArgs e)
{
Rectangle rc = new Rectangle(0, 0, panel1.Width - 1, panel1.Height - 1);
e.Graphics.DrawRectangle(new Pen(Color.Black), rc);
}
--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org
> Or subclassing and drawing the border yourself using GDI.
>
[quoted text clipped - 16 lines]
> > could
> >> just use styles. Anything for panels in winforms?
Showjumper - 30 Dec 2005 21:59 GMT
Thanks to everyone for the ideas
> Or just hook up into Paint event of a Panel and draw the border. Something
> like that:
[quoted text clipped - 34 lines]
>> > could
>> >> just use styles. Anything for panels in winforms?