Welcome Guest Search | Active Topics | Sign In | Register

Duplicate DocumentCompleted Options
Rick Morayniss
Posted: Wednesday, January 29, 2014 3:13:51 PM
Rank: Advanced Member
Groups: Member

Joined: 12/30/2013
Posts: 68
I am still trying to see if your tool will work in my application.
I need a way to duplicate "DocumentCompleted" that is raised on the webbrowser control in vs.I have tried a number of methods, but none seem to work the way I need.
eo_support
Posted: Wednesday, January 29, 2014 3:33:22 PM
Rank: Administration
Groups: Administration

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

You can use IsLoading/IsLoadingChanged event as previous discussed:

http://www.essentialobjects.com/forum/postst8023_Dulplicate-net-webbrowser.aspx

The WebView has a Url property that will give you the current Url.

http://www.essentialobjects.com/doc/6/eo.webbrowser.webview.url.aspx

If you use the latest build, you can also do something like this:

Code: C#
WebView1.LoadUrl(your_url).WaitOne();


Note the "WaitOne()" after LoadUrl. This waill wait until the document is loaded. You can then do whatever you wish to do after that point. The "WaitOne" method didn't exist in early builds. So if you use this method, make sure you update to the latest build first.

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.