日期:2014-05-18 浏览次数:20801 次
protected override void OnPaintBackground(PaintEventArgs pe) { if(this.Parent.BackgroundImage == null || this.Parent ==null) base.OnPaintBackground (pe); else { pe.Graphics.DrawImage(this.Parent.BackgroundImage, 0, 0, new Rectangle(this.Location.X, this.Location.Y, this.Width, this.Height), System.Drawing.GraphicsUnit.Pixel); } }