protected override void OnPaint(PaintEventArgs pe)
        {
           // base.OnPaint(pe);
            Pen pen = new Pen(Color.Black, 2);
            //
            //得到原来绘制区域            Rectangle rect = pe.ClipRectangle;
           pe.Graphics.DrawRectangle( pen, rect);
      }     出现上边框和左边框 比有边框 和下边框 宽度要大
希望指点