如何在c#中更改进度条颜色 [英] how to change progress bar color in c#

查看:921
本文介绍了如何在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 [ ^ ]


我们需要实现默认进度条。

这个 ^^^ 链接我是一个很好的例子。< br $> b $ b

希望对您有所帮助,

Theingi Win


how to change progress bar color in c# . I m using this code but it is not working

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


这篇关于如何在c#中更改进度条颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆