Welcome Guest Search | Active Topics | Sign In | Register

check if WebView1 has loaded the page, then perform an action Options
megaloko21
Posted: Tuesday, July 27, 2021 1:06:17 PM
Rank: Newbie
Groups: Member

Joined: 7/27/2021
Posts: 1
Hello good afternoon

I want a function that checks if WebView1 has loaded the page and then performs an action...

exemple


If WebView1 = "carried" Then

MessageBox.Show("loaded the page")

Else

MessageBox.Show("didn't load")

End If


I appreciate whoever can help me, thank you
eo_support
Posted: Tuesday, July 27, 2021 1:46:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,177
Hi,

The easiest way for you to do so is use LoadUrlAndWait:

Code: C#
//Load Google's home page and wait for it to be fully loaded
WebView1.LoadUrlAndWait("http://www.google.com");

//Do something else
.....


Hope this helps.

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.