C# 프로그레스바 색 변경하기

class NewProgressBar : ProgressBar {     private SolidBrush brush = null;     public NewProgressBar()     {         this.SetStyle(ControlStyles.UserPaint, true);     }     protected override void OnPaint(PaintEventArgs e)     {         if (brush == null || brush.Color != this.ForeColor) brush = new SolidBrush(this.ForeColor); Rectangle rec = new Rectangle(00this.Width, this.Height);         if (ProgressBarRenderer.IsSupported) ProgressBarRenderer.DrawHorizontalBar(e.Graphics, rec);         rec.Width = (int)(rec.Width * ((double)Value / Maximum)) - 4;         rec.Height -= 4;         e.Graphics.FillRectangle(brush, 22rec.Width, rec.Height);     } }