Q:

Assign ProgressBar to WebBrowser Page Loading

I'm using the WebBrowser control to browse to different pages (by clicking buttons on the Form itself, which navigate the WebBrowser control to the different pages).  When it's loading the page, I want a ProgressBar to animate.  Whether or not it actually indicates the progress is not a huge deal - I could just use the Marquee style to animate it while loading. 
The question is: How do I make the ProgressBar animate in this fashion when the page is loading, and stop when the page is finished loading? 

A:

Take a look at the WebBrowser. ProgressChanged event.  The MSDN page says it's pretty "similar to the one in Internet Explorer". 
Code snippet straight from there:
private void WebBrowser1_ProgressChanged(Object sender, WebBrowserProgressChangedEventArgs e) {

    System. Text. StringBuilder messageBoxCS = new System. Text. StringBuilder();
    messageBoxCS.AppendFormat("{0} = {1}", "CurrentProgress", e.CurrentProgress );
    messageBoxCS.AppendLine();
    messageBoxCS.AppendFormat("{0} = {1}", "MaximumProgress", e.MaximumProgress );
    messageBoxCS.AppendLine();
    MessageBox. Show(messageBoxCS.ToString(), "ProgressChanged Event" );
}

e.CurrentProgress would indicate how many bytes have been downloaded so far, e.MaximumProgress would indicate how many bytes there are to download.  It's pretty easy to get a percentage straight from that so... there you go! 
I won't walk you through how to make a progress bar (there's TONS of implementations out there for it) but this should get you going. 
Does this answer your question?