Results 1 to 3 of 3

Thread: Webbrowser - not responding problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009

    Webbrowser - not responding problem

    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
    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
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    End Sub
    End Class

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Beside Waldo

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online

    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Bristol, UK

    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


Click Here to Expand Forum to Full Width