日期:2014-05-18 浏览次数:20820 次
protected override void OnPaintBackground(PaintEventArgs e) { base.OnPaintBackground(e); using (LinearGradientBrush brush = new LinearGradientBrush(e.ClipRectangle, Color.Beige, Color.Red, LinearGradientMode.Vertical)) { e.Graphics.FillRectangle(brush, e.ClipRectangle); } }
------解决方案--------------------