Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Programming own Browser in .NET 2.0

Programming own Browser in .NET 2.0

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpwindows-adminhelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tommy_tanaka
    wrote on last edited by
    #1

    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

    C M 2 Replies Last reply
    0
    • T tommy_tanaka

      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

      C Offline
      C Offline
      Curtis Schlak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • T tommy_tanaka

        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

        M Offline
        M Offline
        mitooki
        wrote on last edited by
        #3

        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.

        T 1 Reply Last reply
        0
        • M mitooki

          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.

          T Offline
          T Offline
          tommy_tanaka
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups