ATMLCommonLibrary.controls.awb.AWBTabControl.DrawControlBorder C# (CSharp) Method

DrawControlBorder() private static method

private static DrawControlBorder ( Graphics g, Rectangle &tabArea ) : void
g System.Drawing.Graphics
tabArea System.Drawing.Rectangle
return void
        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();
            }
        }