protected override void OnPaintBackground(PaintEventArgs e) { if ((this.HScroll || this.VScroll) && ((this.BackgroundImage != null) && (((this.BackgroundImageLayout == ImageLayout.Zoom) || (this.BackgroundImageLayout == ImageLayout.Stretch)) || (this.BackgroundImageLayout == ImageLayout.Center)))) { if (ControlPaint.IsImageTransparent(this.BackgroundImage)) { base.PaintTransparentBackground(e, this.displayRect); } ControlPaint.DrawBackgroundImage(e.Graphics, this.BackgroundImage, this.BackColor, this.BackgroundImageLayout, this.displayRect, this.displayRect, this.displayRect.Location); } else { base.OnPaintBackground(e); } }