No, there is no special event. It is difficult to reliably catch
refresh. It does not fire the standard complement of events, only
DownloadBegin and DownloadComplete. If you get a DownloadBegin event
without any prior BeforeNavigate2, most likely a refresh has just
started.
I've seen claims that one can implement IOleCommandTarget on the client
site object, and WebBrowser will call Exec(OLECMDID_REFRESH) upon
refresh. I haven't tried it myself.
--
With best wishes,
Igor Tandetnik
"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage
You can trap the refresh by using the IDocHostUIHandler inteface.
It has a method called TranslateAccelerator. For a refresh (F5) this is
called with a cmdid of 6041. Return S_OK from this function to suppress the
refresh.
You can pass this interface to mshtml through the ICustomDoc interface.
This interface is obtained through a QueryInterface on the document.
Hope this helps,
CJL