Monitor navigation controls RRS feed

  • Question

  • I want to know when the user clicked on the Back/Forward button in the tool bar, or submitted a new URL in the address bar.
    Is there an event that I can listen to ?

    Tuesday, November 13, 2007 11:05 PM

All replies

  • Hi ∏,


    Private Sub WebBrowser1_CommandStateChange(ByVal Command As Long, ByVal Enable As Boolean)

    End Sub

    Should do the trick...









    Wednesday, November 14, 2007 8:58 PM
  • From the description of the event on MSDN, it is fired when the "enabled/disabled" state of the button needs to change.
    I want to be notified when those buttons are clicked (the command is executed)

    Thursday, November 15, 2007 12:14 AM
  • Hi,


    The buttons will be sending a Windows message when they are clicked. A callback function will be able to notify you when this occurs. However, history navigation can occur without the navigation buttons being pressed. That may be achieved by adding a reference to MSHTML and then looking for changes the the History.length in the BeforeNavigate2 event.




    Thursday, November 15, 2007 1:37 AM
  • To get the callback, i need to have a reference to the button.
    I am writing a BHO for IE (in C++). I only have the IWebBrowser2 interface to start with.
    I am not sure how to access the navigation buttons from my BHO and hook a callback to them.

    Thursday, November 15, 2007 1:55 AM