+ 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!
2 ответов
+ 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.
+ 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