/// <summary> /// 禁止显示flash /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void webBrowser_ProcessUrlAction(object sender, csExWB.ProcessUrlActionEventArgs e) { if (e.urlAction == IfacesEnumsStructsClasses.URLACTION.ACTIVEX_RUN) { Guid flash = new Guid("D27CDB6E-AE6D-11cf-96B8-444553540000"); if (e.context == flash) { e.handled = true; e.urlPolicy = IfacesEnumsStructsClasses.URLPOLICY.DISALLOW; } } }
private void WebBrower_ProcessUrlAction(object sender, ProcessUrlActionEventArgs e) { if (e.urlAction == URLACTION.SCRIPT_RUN) { //m_ScriptStartTimepoint = DateTime.Now; //Logger.Log(string.Format("ProcessUrlAction脚本开始执行,Url:{0},UrlAction{1},UrlPolicy:{2},Context:{3}", e.url, e.urlAction, e.urlPolicy, e.context)); } else if (e.urlAction == URLACTION.ACTIVEX_RUN) { if (e.context == ms_guidFlash) { e.handled = true; e.urlPolicy = URLPOLICY.DISALLOW; //Logger.Log(string.Format("ProcessUrlAction,Url:{0},UrlAction{1},UrlPolicy:{2},Context:{3}", e.url, e.urlAction, e.urlPolicy, e.context)); } } }
private void VBACsEXWB_ProcessUrlAction(object sender, ProcessUrlActionEventArgs e) { if (e.urlAction == URLACTION.SCRIPT_RUN) { m_ScriptStartTimepoint = DateTime.Now; } else if (e.urlAction == URLACTION.ACTIVEX_RUN) { if (e.context == ms_guidFlash && (!m_IsFlashEnable)) { e.handled = true; e.urlPolicy = URLPOLICY.DISALLOW; } } }