Welcome Guest Search | Active Topics | Sign In | Register

[EO.WebBrowser] LoadRequestAndWait return load result Options
Drags
Posted: Wednesday, November 18, 2015 6:57:01 PM
Rank: Member
Groups: Member

Joined: 10/4/2015
Posts: 13
Hi

We need to make sure LoadRequestAndWait completes before we continue execution. However function doesn't return any values to know has it succeeded or not. It would be nice to get back at least failed or succeeded.

Also will it always be true that event handlers LoadCompelete or LoadFailed will be called before LoadRequestAndWait returns.

TY!
eo_support
Posted: Wednesday, November 18, 2015 8:29:49 PM
Rank: Administration
Groups: Administration

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

LoadComplete and LoadFailed will always be called but they are not guaranteed to be called before LoadRequestAndWait returns. However LoadRequestAndWait calls the following code:

Code: C#
LoadRequest(request).WaitOne();


LoadRequest returns a NavigationTask object through which you can determine whether the load was successful or not.

Thanks!
Drags
Posted: Wednesday, November 18, 2015 10:15:11 PM
Rank: Member
Groups: Member

Joined: 10/4/2015
Posts: 13
thnx, it worked!

Great product!


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.