private void DrawStringBox(string sText, Font fText, Color cText, Color cBox, Color cBorder, int iOuterBorderWidth, int iInnerBorderWidth, Point pLocation, Graphics g)
{
Point pBorder = pLocation;
Point pBox = pLocation;
Point pText = pLocation;
pBox.Offset(iOuterBorderWidth, iOuterBorderWidth);
pText.Offset(iOuterBorderWidth + iInnerBorderWidth, iOuterBorderWidth + iInnerBorderWidth);
Size szText = TextRenderer.MeasureText(sText, fText);
Size szBox = szText;
Size szBorder = szText;
szBox.Width += (2 * iInnerBorderWidth);
szBox.Height += (2 * iInnerBorderWidth);
szBorder.Width += (2 * iInnerBorderWidth) + (2 * iOuterBorderWidth);
szBorder.Height += (2 * iInnerBorderWidth) + (2 * iOuterBorderWidth);
g.FillRectangle(new SolidBrush(cBorder), new Rectangle(pBorder, szBorder));
g.FillRectangle(new SolidBrush(cBox), new Rectangle(pBox, szBox));
g.DrawString(sText, fText, new SolidBrush(cText), pText);
}