[SOLVED] Determine whether CEFSharp browser can go forward or back?

Im trying to disable my forward and back buttons if you cannot go forward or back. How do you achieve this? Thankssss!!!

A post by brwck

Like 0 Dislike

Hiya @brwck,

To determine whether the CEFSharp browser can go back or forward, you can use the following in your "LoadingStateChanged" event:

BackBtn.Enabled = Browser.CanGoBack;
ForwardBtn.Enabled = Browser.CanGoForward;

Hope this helps! 1f609

Like +1 Dislike