[RESOLVED]Determine When Webbrowser Component Finished Loading
Hi everyone! Here's my code:
Code:
Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged
Me.ProgressBar1.Maximum = Convert.ToInt32(e.MaximumProgress)
Me.ProgressBar1.Value = Convert.ToInt32(e.CurrentProgress)
Well, the progress bar works fantastic! The only problem is how my program can tell when a webpage has finished loading. Can anyone tell me what I should do?
Thanks.:)
Re: [2008]Determine When Webbrowser Component Finished Loading
The webpage (and/or the frames within the webpage) has finished loading when the DocumentCompleted event is raised.
Re: [2008]Determine When Webbrowser Component Finished Loading
Ah I see. Thanks.
One more thing though...I'm kind of really new to coding...so how would I go about and implement that?
Re: [2008]Determine When Webbrowser Component Finished Loading
You need to handle the DocumentCompleted event. Double click the webbrowser in the designview to bring up the codeview, have a look in the event list in the upper right part of the code area. Select the DocumentCompleted event in there and an eventhandler will automatically be generated for you.
Re: [2008]Determine When Webbrowser Component Finished Loading