private void WebBrowser1_ProgressChanged(object sender, System.Windows.Forms.WebBrowserProgressChangedEventArgs e)
{
int d;
int t;
ProgressBar1.Visible = true;
d = (int)e.CurrentProgress;
t = (int)e.MaximumProgress;
if ((d <= 0))
{
ProgressBar1.Value = 0;
ProgressBar1.Visible = false;
}
else
{
ProgressBar1.Value = Math.Min(ProgressBar1.Maximum, Convert.ToInt32(Math.Floor((ProgressBar1.Maximum
* (d / t)))));
}
}
Error 1 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Documents and Settings\carl\My Documents\Visual Studio 2008\Projects\SimpleBrowser\SimpleBrowser\Form1.cs 96 85 SimpleBrowser
[/source]

New Topic/Question
Reply




MultiQuote






|