private static void DrawControlBorder( Graphics g, ref Rectangle tabArea )
{
//-------------------//
//--- draw border ---//
//-------------------//
int nDelta = SystemInformation.Border3DSize.Width;
using (var border = new Pen( SystemColors.ControlDark ))
{
tabArea.Inflate( nDelta, nDelta );
g.DrawRectangle( border, tabArea );
border.Dispose();
}
}