Search code examples
.netdocumentgecko

Geckofx Handle Document complet


I need to handle document complet in Geckofx 33 webbrowser gecko isbusy function is not working StatusText also

<i>

web.navigate("http://google.com")

msgbox(web.isbusy) ' this return False '

</i>

Solution

  • if 'web' is your geckowebbrowser, then just do:

    web.DocumentCompleted += web_DocumentCompleted;
    
    
      void web_DocumentCompleted(object sender, GeckoDocumentCompletedEventArgs e)
            {
                 //do stuff here
            }
    

    Also, instead of checking 'isbusy', try having a similar event handler for 'web.navigating'.