void DrawingPanel(System.Windows.Forms.Panel p,Color c)
{
   SolidBrush brush = new SolidBrush(c);
   Pen pen=new Pen(brush,5);
           System.Drawing.Graphics g = p.CreateGraphics();
   g.DrawRectangle(pen,0,0,p.Width,p.Height);
}
我想给panel加个边框??但是上面的代码却只是让左边和顶部有了边框,其他没有??
不知道为什么???
谢谢回复!