用更简单的方法搞定了。关键是我的Form中没有其他需要处理F5的地方。axwebbrowser这个控件麻烦的地方就在于处理了keydown之类的事件,其实Form没有收到。
public class MyMainForm : System.Windows.Forms.Form, IMessageFilter
However, it is a doc error that each DWebBrowserEvents2::DownloadBegin event will
have a corresponding DWebBrowserEvents2::DownloadComplete event. The behavior is actually that when you get a DWebBrowserEvents2::DownloadComplete event, it applies to all of the DWebBrowserEvents2::DownloadBegin events you got since the last DWebBrowserEvents2::DownloadComplete. The intent of these two events is for "something is happening" UI to be started and stopped - they're not good for much else.