void InvalidateBoxSelectRect ()
{
if (BoxSelectRectangle.Size.IsEmpty)
return;
Rectangle edge = BoxSelectRectangle;
edge.X -= 1;
edge.Y -= 1;
edge.Width += 2;
edge.Height = 2;
Invalidate (edge);
edge.Y = BoxSelectRectangle.Bottom - 1;
Invalidate (edge);
edge.Y = BoxSelectRectangle.Y - 1;
edge.Width = 2;
edge.Height = BoxSelectRectangle.Height + 2;
Invalidate (edge);
edge.X = BoxSelectRectangle.Right - 1;
Invalidate (edge);
}