Reputation: 84
I'm working on a new application that starts on opening a timer, when the timer ticks a progressbar loads.
The basic thing I want is just change the color of the green bar. For example to blue.
I tried to change the color, if I look in the Properties Window of my progressbar, I can change the BackColor and ForeColor. Exactly as I did.
Now, I'm sure I did change the color but the changes doesn't seem to affect the progressbar.
It does not seem to change at all.. It still stays grey and green.
Is it possible to change this?
Maybe I need some code(C# or .NET)? (no need to tell the exact code, some basic pricipe is good)
Thank You
Upvotes: 1
Views: 5387
Reputation: 180
Locate the following line of code within your solution (tipically in Program.cs):
Application.EnableVisualStyles();
Comment out this line. Now the color of the progress bar will change as expected, but the style of your controls will also change a little. I'm curremtly trying to find a better solution for this myself.
Upvotes: 1