asma

asma

  • NA
  • 507
  • 0

Block Popup windows in browser

May 29 2008 7:17 AM
Hello
M working on C#.net windows application 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