From my testing setting cancel = .t. in the NewWindow2 event does not work as described in the documentation. Setting cancel = .t. inside the BeforeNavigate2() event does work, but this prevents all hyperlinks from working.
This does seem to work for me though
ppdisp = this
it will prevent the launch of a new window. Though it also doesn't cause the navigation to occur in the IE instance itself.
>I build a form that consist of web browser control , and i want new page show in my defined window
>when the user rightclick the hyperlinker and select new in the window.
>
>I have modified the event "newwindow2" of web browser control .
>
>LPARAMETERS ppdisp, cancel
>CANCEL = .T.
>
>but it do not work ,and how can I know the url when the user show the page in the new window?