新手:C#中progressBar进度条上的文字频繁闪烁问题

代码:
string strText = "nihao";
Font font = new Font("微软雅黑", (float)10, FontStyle.Regular);
PointF pointF = new PointF(this.progressBar5.Width / 2 - 10, this.progressBar5.Height / 2 - 10);
this.progressBar5.CreateGraphics().DrawString(strText, font, Brushes.Black, pointF);
文字写上去了,但是会随着进度条的闪烁而频繁闪烁,怎么解决?求大神解答

//这是我在重绘的时候去掉的闪烁,你试试
this.SetStyle(ControlStyles.UserPaint, true);//自动绘制
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);//减少闪烁
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);//减少闪烁
this.SetStyle(ControlStyles.DoubleBuffer, true);//减少闪烁
this.SetStyle(ControlStyles.ResizeRedraw, true);//重绘控件
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);//减少闪烁

这是我在一个项目中解决闪烁时的代码。不知道对progressBar有没有效果,你试试吧。
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);