|
-
Jan 24th, 2013, 02:30 PM
#12
Thread Starter
Addicted Member
Re: how can I prevent this from causing an error?
 Originally Posted by dunfiddlin
Why do you need to wait for it to load? Or perhaps just, do you need to wait for it to load?
because the html elements my loop is trying to manipulate are not there until after the website loads.
this loop works fine on my computer when debugging but the doevents() randomly causes that protected memory error on all other computers
Do While Form1.WebBrowser1.ReadyState <> WebBrowserReadyState.Complete
System.Windows.Forms.Application.DoEvents()
Loop
so how can I wait for the form1.webbrowser1 to load from within a loop (which involves navigating multiple websites) or from outside of form1 without using application.doevents()
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
|