|
-
Feb 14th, 2011, 02:54 PM
#1
Thread Starter
New Member
Webbrowser - not responding problem
Hi! 
I have made a webbrowser who open automatically one by one many URLs from a big database but when it finds web pages like this one http://www.redstrand.com/TechBlog/po...te-Cursor.aspx my CPU usage is very high and I can't find a way to stop the webbrowser and move to the next URL from my data base. I tried with timer but is not working probably because of very high CPU usage. Even a button with WebBrowser1.Stop() won't work. Any idea please?
To verify more easy try this simple code who must open first the bad URL and after completed to open www.google.com:
Public Class Form1
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Timer1.Enabled = False
WebBrowser1.Navigate("http://www.google.com")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Interval = 40000
Timer1.Enabled = True
WebBrowser1.Navigate("http://www.redstrand.com/TechBlog/post/Template-Cursor.aspx")
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
WebBrowser1.Stop()
WebBrowser1.Navigate("http://www.google.com")
End Sub
End Class
-
Feb 14th, 2011, 03:06 PM
#2
Re: Webbrowser - not responding problem
This should have been posted in the .Net section.
But until it is moved, others with very good knowledge of the webbrowser control may be able to answer. It appears it is nearly the same in VB6 as it is in .Net.
-
Feb 14th, 2011, 03:09 PM
#3
Re: Webbrowser - not responding problem
Thread moved from 'VB6 and Earlier' forum to 'VB.Net' (VB2002 and later) forum
(thanks for letting us know LaVolpe )
Tags for this Thread
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
|