Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
1,528
Widok
0
12/01/2020 5:09 pm
Topic starter
NewWindow event
1 Answer
0
12/01/2020 5:09 pm
Topic starter
SHDocVw.IWebBrowser2 axBrowser = typeof(WebBrowser).GetProperty("AxIWebBrowser2", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(web, null) as SHDocVw.IWebBrowser2; ((SHDocVw.DWebBrowserEvents_Event)axBrowser).NewWindow += OnWebBrowserNewWindow; private void OnWebBrowserNewWindow(string URL, int Flags, string TargetFrameName, ref object PostData, string Headers, ref bool Processed) { Processed = true; MessageBox.Show("TEST"); }