Welcome Guest Search | Active Topics | Sign In | Register

CanGoBack not set in WebView1_UrlChanged Options
WeeSwe
Posted: Wednesday, November 2, 2016 8:31:34 AM
Rank: Member
Groups: Member

Joined: 1/20/2014
Posts: 20
Hi

Have had this issue for a while and hoped in would be fixed when upgrading fromEO2016 to EO2016.
I have Back/Fwd icons that are visble if browser can go back or fwd. This works fine with the built-in IE WebBrowser object, but not with EO. I'm sure I'm need to do something else, than what I', doing:)

My code:

Private Sub WebView1_UrlChanged(sender As Object, e As EventArgs) Handles WebView1.UrlChanged

picLeft.Visible = WebView1.CanGoBack
picRight.Visible = WebView1.CanGoForward

End Sub
eo_support
Posted: Thursday, November 3, 2016 1:03:49 PM
Rank: Administration
Groups: Administration

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

Have you tried using CanGoBackChanged and CanGoForwardChanged event instead?

Thanks!
WeeSwe
Posted: Thursday, November 3, 2016 3:14:23 PM
Rank: Member
Groups: Member

Joined: 1/20/2014
Posts: 20
No, but that wont help me understand if I can go back or not, just that it changed. Right?
WeeSwe
Posted: Thursday, November 3, 2016 3:18:30 PM
Rank: Member
Groups: Member

Joined: 1/20/2014
Posts: 20
BTW - when is the URL_Changed event raised?
eo_support
Posted: Friday, November 4, 2016 7:42:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
WeeSwe wrote:
No, but that wont help me understand if I can go back or not, just that it changed. Right?


Can you try it first?
WeeSwe
Posted: Monday, November 7, 2016 5:07:19 AM
Rank: Member
Groups: Member

Joined: 1/20/2014
Posts: 20
Ah, didn't think that one through:) The event is raised as the back/fwd stack IS changed.
Work perfectly. Pls close.

Txs!


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.