Welcome Guest Search | Active Topics | Sign In | Register

WebView.DoEvents question Options
Louis
Posted: Tuesday, November 29, 2016 8:30:16 AM
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.
eo_support
Posted: Tuesday, November 29, 2016 8:39:26 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.