如何在c#中更改进度条颜色 [英] how to change progress bar color in c#
问题描述
如何在c#中更改进度条颜色。我使用此代码但它无法正常工作
progressBar1.Visible = true;
progressBar1.Minimum = 1;
progressBar1.Maximum = 10;执行
progressBar1.ForeColor = Color.Yellow;
progressBar1.Step = 1;
最新进度条(虽然漂亮)不允许您更改颜色 - 请参阅此讨论以了解它:http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/7ffabd94-43f4-4e6a-8952-cd347c154b1f?prof=要求 [ ^ ]
http://www.tek-tips.com/viewthread.cfm?qid=997514&page=276 [ ^ ]
how to change progress bar color in c# . I m using this code but it is not working 这篇关于如何在c#中更改进度条颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
这个 ^^^ 链接我是一个很好的例子。< br $> b $ b
希望对您有所帮助,
Theingi Win
progressBar1.Visible = true;
progressBar1.Minimum = 1;
progressBar1.Maximum = 10; perform
progressBar1.ForeColor = Color.Yellow;
progressBar1.Step = 1;The latest progress bar (while pretty) does not allow you to change the color - see this discussion for a way around it: http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/7ffabd94-43f4-4e6a-8952-cd347c154b1f?prof=required[^]
http://www.tek-tips.com/viewthread.cfm?qid=997514&page=276[^]
We need to implement the default progress bar.
This ^^^link my be the one of good examples.
Hope be helpful,
Theingi Win