|
-
May 2nd, 2008, 03:52 PM
#1
Thread Starter
New Member
[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.
Last edited by elemaeoh; May 2nd, 2008 at 04:54 PM.
-
May 2nd, 2008, 04:05 PM
#2
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.
-
May 2nd, 2008, 04:14 PM
#3
Thread Starter
New Member
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?
-
May 2nd, 2008, 04:28 PM
#4
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.
-
May 2nd, 2008, 04:30 PM
#5
Thread Starter
New Member
Re: [2008]Determine When Webbrowser Component Finished Loading
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|