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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, You can use IsLoading/IsLoadingChanged event as previous discussed: http://www.essentialobjects.com/forum/postst8023_Dulplicate-net-webbrowser.aspxThe WebView has a Url property that will give you the current Url. http://www.essentialobjects.com/doc/6/eo.webbrowser.webview.url.aspxIf 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!
|