+ 4

Progress Bar doesnt change its color! (C# WinForms)

I have a progress bar and I want to change its color, I change it in the forecolor properties and even in code it stills green!

17th Mar 2018, 8:50 PM
SebGM2018
SebGM2018 - avatar
2 Respuestas
+ 2
Having the same problem. And I keep having a feeling that when I was experimenting a few years ago, I could easily change the colour to yellow (when the operation was paused) or red (when it was being blocked). But now, I can't find these properties.
6th Sep 2020, 8:15 PM
Jan Štěch
Jan Štěch - avatar
+ 1
This is more difficult than I thought. The standard progress bar does not support changing colors. Locate the following line of code within your solution (tipically in Program.cs): Application.EnableVisualStyles(); It can make other controls look ugly!! https://stackoverflow.com/questions/17071419/visual-studio-2010-progressbar-does-not-change-color?rq=1 Or make your own progressbar. https://stackoverflow.com/questions/778678/how-to-change-the-color-of-progressbar-in-c-sharp-net-3-5
18th Mar 2018, 8:40 PM
sneeze
sneeze - avatar