3

I have a webbrowser control that opens a third party web app and then. When user clicks on the links it opens into IE. How to stop that and open them in same control or in a different web browser control?

Nivid Dholakia
  • 5,272
  • 4
  • 30
  • 55
  • try to change target to "_self" or make firefox your default browser – Senad Meškin Jul 07 '11 at 18:41
  • I want to open that link in that webbrowser control that wpf provides and i cannot control the links as its a third party app. – Nivid Dholakia Jul 07 '11 at 18:44
  • I understand, but if the app says open this link in new window than you can't do anything, maybe there is something in config, read documentation. – Senad Meškin Jul 07 '11 at 18:45
  • 1
    possible duplicate of [Setting popup window to be a child of MDI Control when using WebBrowser Control](http://stackoverflow.com/questions/6470842/setting-popup-window-to-be-a-child-of-mdi-control-when-using-webbrowser-control) – Hans Passant Jul 07 '11 at 19:17
  • Yes i was able to control upto one popup but the other popup forces me to IE it doesnt even call back any code so that i can handle that request. – Nivid Dholakia Jul 08 '11 at 21:05
  • Use the DOM interfaces to modify the links to target "_self". – i_am_jorf Jul 09 '11 at 01:01

0 Answers0