Programming own Browser in .NET 2.0
-
Hi everyone - I'd like to develop an own browser with the new .net 2.0 framework. With the Browser Control this shouldn't be so hard. I'd just update my registry so far that my program will be the standard browser of windows. but now i have the following problem: on the start of my browser (for example if a new instance/window is created by a popup-link), how can I get the desired url? is there an active-x component or something like that and how do I access to that in my .net program? Thanks for all your answers. Greetings - Tom
-
Hi everyone - I'd like to develop an own browser with the new .net 2.0 framework. With the Browser Control this shouldn't be so hard. I'd just update my registry so far that my program will be the standard browser of windows. but now i have the following problem: on the start of my browser (for example if a new instance/window is created by a popup-link), how can I get the desired url? is there an active-x component or something like that and how do I access to that in my .net program? Thanks for all your answers. Greetings - Tom
Try reading Microsoft's Pluggable Protocol Overview[^]. It briefly explains how Windows finds the correct application for a given protocol (like http) and the arguments that it sends to the specified application. "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty
-
Hi everyone - I'd like to develop an own browser with the new .net 2.0 framework. With the Browser Control this shouldn't be so hard. I'd just update my registry so far that my program will be the standard browser of windows. but now i have the following problem: on the start of my browser (for example if a new instance/window is created by a popup-link), how can I get the desired url? is there an active-x component or something like that and how do I access to that in my .net program? Thanks for all your answers. Greetings - Tom
The WebBrowser control is an ActiveX control for Internet Explorer. On your WebBrowser control try handling the event BeforeNavigate2. You will be able to examine the URL that is about to be opened and can optionally cancel it if need be. See: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/objects/webbrowser.asp[^] Hope that helps.
-
The WebBrowser control is an ActiveX control for Internet Explorer. On your WebBrowser control try handling the event BeforeNavigate2. You will be able to examine the URL that is about to be opened and can optionally cancel it if need be. See: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/objects/webbrowser.asp[^] Hope that helps.
hi there - thank you for your answers. i found out, that the new browser control in .net 2.0 does not yet support the event that i need. it can only cancel a newWindow event, but nothing more. there is no newWindow2 or newWindow3 event or a BeforeNavigate2 event. So i decided to use the axWebBrowser. it is not so comfortable then the BrowserControl, but it has more fexible event handlings. thanks tom