Ejemplo n.º 1
0
 private void SetHandler(InternetExplorer explorer)
 {
     try
     {
         // Register the oncontextmenu event of the  document in InternetExplorer.
         HTMLDocumentEventHelper helper = new HTMLDocumentEventHelper(explorer.Document as HTMLDocument);
         helper.oncontextmenu += new HtmlEvent(oncontextmenuHandler);
     }
     catch { }
 }
Ejemplo n.º 2
0
 void SetHandler(InternetExplorer explorer)
 {
     try
     {
         // 在IE浏览器中注册文档的 oncontextmenu 事件
         HTMLDocumentEventHelper helper =
             new HTMLDocumentEventHelper(explorer.Document as HTMLDocument);
         helper.oncontextmenu += new HtmlEvent(oncontextmenuHandler);
     }
     catch { }
 }
Ejemplo n.º 3
0
        void SetHandler(InternetExplorer explorer)
        {
            try
            {

                // 在IE浏览器中注册文档的 oncontextmenu 事件
                HTMLDocumentEventHelper helper =
                    new HTMLDocumentEventHelper(explorer.Document as HTMLDocument);
                helper.oncontextmenu += new HtmlEvent(oncontextmenuHandler);
            }
            catch { }
        }