Search code examples
c#.netwebbrowser-controlaxwebbrowser

AxSHDocVw.AxWebBrowser CanGoBack/CanGoForward missing like in WebBrowser


I am using AxWebBrowser control and i need to implement an interface that indicates if the user can navigate back or forward.

In the "normal" WebBrowser control i had the booleans CanGoBack/CanGoForward.

Does AxWebBrowser have similar bools or do i have the chance to implement it in another way?


Solution

  • You'd need to handle DWebBrowserEvents2::CommandStateChange and track the state CSC_NAVIGATEFORWARD/CSC_NAVIGATEBACK commands.