Rank: Advanced Member Groups: Member
Joined: 6/20/2016 Posts: 32
|
According to the documentation, WebView.DoEvents "returns true if at least one message has been processed, otherwise false".
So if you are doing a lot of automation, is it not then prudent to have something like this every now and then in your code:
Do While Me.webView1.DoEvents() DoEvents() Loop
I'm really just asking mostly because I'm not exactly sure what webView1.DoEvents does, but it sounds like it could be beneficial.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You can do that but it is not necessary. As soon as WebView.DoEvents returns, it means there is no more messages to process. In another word, regardless whether WebView.DoEvents returns true or false, all messages have already been processed. So at this point it is not necessary to call DoEvents and loop back to WebView.DoEvents again.
Thanks!
|