标签:public == event vat errors hide one 取消 error
private void WebBrowser_Navigated(object sender, NavigationEventArgs e) { SuppressScriptErrors((WebBrowser)sender, true); } public void SuppressScriptErrors(WebBrowser wb, bool Hide) { FieldInfo fiComWebBrowser = typeof(WebBrowser).GetField("_axIWebBrowser2", BindingFlags.Instance | BindingFlags.NonPublic); if (fiComWebBrowser == null) return; object objComWebBrowser = fiComWebBrowser.GetValue(wb); if (objComWebBrowser == null) return; objComWebBrowser.GetType().InvokeMember("Silent", BindingFlags.SetProperty, null, objComWebBrowser, new object[] { Hide }); }
标签:public == event vat errors hide one 取消 error
原文地址:https://www.cnblogs.com/ives/p/10907682.html