internal override void paintBackground(Graphics g, Rectangle rect, Color bgColor, Color fgColor, bool keepColor) { ControlStyle style = MgTextBox.ShouldDrawFlatTextBox ? ControlStyle.TwoD : ControlStyle.Windows; style = (ShowBorder ? style : ControlStyle.NoBorder); Rectangle drawRect = rect; #if PocketPC // On Mobile, the offset is not set in the Graphics. Therefore we need to change // the offset for all static controls offsetStaticControlRect(ref drawRect); #endif ControlRenderer.PaintBackgroundAndBorder(g, drawRect, bgColor, FgColor, style, true, EnabledBackGround || bgColor == Color.Transparent); }