I am now writing the simple Winapps C# to display the progress bar in such way that normally it displays green and turn red when its value > 70 (suppose the value range is 0 to 100).
I read some method at Stack Overflow, I found that there are some complicated method that are just used to change the color of progress bar.
At the properties of Progress bar, there are two parameters Forecolor and backcolor to change the colors of progress bar and I did try to the following codes:
pgBar1.ForeColor = Color.FromArgb(255, 0, 0);
pgBar1.BackColor = Color.FromArgb(255, 100, 0);
But it seems doesn't work. I am wonder why not?
Can anyone suggest the simple way to do so?
Thank you.