|
-
December 6th, 2010, 10:22 AM
#1
Progress bar Error!
I am running c# 2010/.NET 4 Client Profile
I have some code for my progress bar-statusProgress
this code seems to do it's job, it displays the progress of my web browser control-webBrowser
There is no error written, but when i load my app, it says:
Value of '-1' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
Code is:
private void webBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
{
statusProgress.Maximum = Convert.ToInt32(e.MaximumProgress);
statusProgress.Value = Convert.ToInt32(e.CurrentProgress);
}
Please give some help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|