Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
The title says it all. I'm using a system.windows.forms.webbrowser control and I am allowing navigation, but if a link tries to open in a new window, it should open in the same (in the webbrowser from my program). How can I accomplish that?
Development & Research Department @ Elven Soft
  • Leaders
Posted
For starters, look at the NewWindow event. I believe that it is raised (and allows you to cancel) if any kind of popup is going to be shown. As far as intercepting the url to navigate to, I can't help you with that.
[sIGPIC]e[/sIGPIC]
Posted
If I'm not wrong there's an event raised when a link is clicked. Process that event yourself and cancel the default action... worked fine for me (in win32)...
Posted
OK I managed somehow to take the link out of the activeElement. The problem is there are a lot of ways to open a new browser window: like html link or javascript function or etc etc
Development & Research Department @ Elven Soft

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...