PROKA Posted June 3, 2006 Posted June 3, 2006 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? Quote Development & Research Department @ Elven Soft
Leaders snarfblam Posted June 3, 2006 Leaders Posted June 3, 2006 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. Quote [sIGPIC]e[/sIGPIC]
dick_nl Posted June 4, 2006 Posted June 4, 2006 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)... Quote
PROKA Posted June 9, 2006 Author Posted June 9, 2006 Ok so has anyone figured out some code to accomplish this? Quote Development & Research Department @ Elven Soft
PROKA Posted June 9, 2006 Author Posted June 9, 2006 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 Quote Development & Research Department @ Elven Soft
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.