We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Putting a Browser into Your Windows Application
|
| Subject: |
|
Modifications to this example |
| Date: |
|
2005-06-28 12:11:04 |
| From: |
|
rlramirez
|
|
|
|
FWIW, I found that I had to modify these two event handlers:
private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
{
progressBar1.Value = (int)((e.CurrentProgress / e.MaximumProgress)*100); /// Multiply this ratio by 100 for full scaling
}
AND
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
progressBar1.Value = 0; /// Reset the progress bar
}
|