How to block popups in broswer component?
-
Hello i have used AxSHDocVw.AxWebBrowser in my application. i want to block popup windows for my code. How do i go about it. i tried doing private void axWebBrowser1_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e) { e.ppDisp = null; e.cancel = true; } But this is not helping Can i get help over it?
-
Hello i have used AxSHDocVw.AxWebBrowser in my application. i want to block popup windows for my code. How do i go about it. i tried doing private void axWebBrowser1_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e) { e.ppDisp = null; e.cancel = true; } But this is not helping Can i get help over it?
have you tried catching the NewWindow3 event?
-
have you tried catching the NewWindow3 event?
newWindow3 is used for Xp? can i used in my code?
-
Hello i have used AxSHDocVw.AxWebBrowser in my application. i want to block popup windows for my code. How do i go about it. i tried doing private void axWebBrowser1_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e) { e.ppDisp = null; e.cancel = true; } But this is not helping Can i get help over it?
can ne 1 help???