C-sharp WebBrowser with progress bar

August 13, 2008 at 1:04 pm Leave a comment

private void WebBrowser1_ProgressChanged(object sender, System.Windows.Forms.WebBrowserProgressChangedEventArgs e) {

ProgressBar1.Visible = (!(e.CurrentProgress<=0 || e.CurrentProgress==e.MaximumProgress));
if (ProgressBar1.Visible) {

ProgressBar1.Value = ((float)e.CurrentProgress/(float)e.MaximumProgress) * 100;
} else {

ProgressBar1.Value = 0;
}
}

Advertisements

Entry filed under: c-sharp. Tags: , , , , , , , , , , , , , , , , .

Sql fetch cursors Function for resize image By Percent

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

%d bloggers like this: