简体   繁体   中英

Disable progress bar glow effect

For the default ProgressBar control, when the value is less than the max value, there is a glow effect (white part in bottom progress bar). Is there a simple way to disable the glow?

在此处输入图片说明

  1. Set the ProgressBar.Minimum to what will be progress bar's value.
  2. Set the ProgressBar.Value to equal the ProgressBar.Minimum.
  3. Set the ProgressBar.Minimum to zero. Presto - no glow.

Works on toolstrip progress bars. 'Don't know about Forms.ProgressBar but seems like it should.

In case anyone was wondering, I solved this by using the custom progress bar class in the second answer here . The custom progress bar doesn't have a glow effect, and it also has the feature of allowing custom text on the progress bar. I also used the third answer ("Avoid flickering text") to solve the flicker problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM