Hi all,
In vb.net I have my Axwebbrowser control and I added a beforenavigate2 sub to my code so that I could capture some things (eg the last button the user clicked on) just before the current webpage disappears and a new webpage is loaded. However this does not seem to work and I cannot even get it to go into the beforenavigate2 sub (i put a msgbox in the subs first line and it never has been displayed).
I guess I am using the beforenavigate2 wrongly? If so how do I use it? Or better still how can I get a sub to be called just before a new webpage is loaded in the webbrowser?
EG.
I'm at yahoo.com.
I enter some words in the search engine textbox.
I click search.
This click is the last thing the user can do before the next page is displayed.
I want to call a sub at this point, after the last click and before the next page is loaded.
Any ideas guys?
I thought beforenavigate2 was the answer.![]()
It doesn't seem to be.![]()




Reply With Quote