Rank: Newbie Groups: Member
Joined: 9/26/2014 Posts: 4
|
I use want to use loadurlandwait, but if the connection is broken, stay too much to execute
How can set a timeout (ex 60 sec ) to wait to execute this function. OR there is a event that can i check what is the status of execution?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, You would use LoadUrl(url).WaitOne(time_out_in_ms). LoadUrl returns a NavigationTask object that exposes a number of wait methods (through its base class WaitableTask): http://www.essentialobjects.com/doc/6/eo.webbrowser.navigationtask.aspxLoadUrlAndWait is the same as LoadUrl(url).WaitOne(), which wait for an infinite time out. Thanks!
|
Rank: Newbie Groups: Member
Joined: 9/26/2014 Posts: 4
|
I understand that.
I try to load innertext page into variable i have this code:
Dim wb As New EO.WebBrowser.WebView wb.LoadUrl(<urlpage>).WaitOne(3000) myIP = wb.GetText
What is the best way.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
|