I am currently trying to use a web browser created dynamically in code to extract details in a web page, but I am unable to know when the load is complete. I know there is a .LoadCompleted
event.
I tried it and it is not firing for some reason, so I dropped it.
But I am kind of looking for the type where we used to do for winforms webbrowser control. I'm checking if the document is ready like this:
Do Until WebBrowser1.ReadyState = WebBrowserReadyState.Complete
Application.DoEvents()
Loop
Is there anything similar? So that I can check and continue with the rest of the code.