C# - 的“10000”值是无效的“值”。 “值”应该是“最小”和“最大”之间 [英] C# - Value of '10000' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'

查看:362
本文介绍了C# - 的“10000”值是无效的“值”。 “值”应该是“最小”和“最大”之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页浏览器进度。并且代码:

I have a web browser progressbar. And the code is:

   private void progressBar1_Click(object sender, WebBrowserProgressChangedEventArgs e)
    {
        progressBar1.Value = unchecked((int)e.CurrentProgress);
    }



而当我玩的应用程序。它给出了一个错误:的10000

And when I play the app. Its gives an error:

值是无效的值。 值应该是最小和最大之间。

那么,有没有办法解决它。

so is there any way to fix it.

推荐答案

要么提供的是当你创建进度条指定的最小值和最大值之间的当前进度的值(这将是0 - 100默认情况下,如果你没有指定它们)或改变最小/最大是什么是真正期待您当前正在传递的值。

Either provide a value for the current progress that is between the min and max you specified when you created the progress bar (it will be 0 - 100 by default if you didn't specify them) or change the min/max to be what is actually expected of the values you are currently passing.

这篇关于C# - 的“10000”值是无效的“值”。 “值”应该是“最小”和“最大”之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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