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. The Lounge
  3. WebBrowser hack

WebBrowser hack

Scheduled Pinned Locked Moved The Lounge
csharpcsswinformscomquestion
10 Posts 5 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.
  • B Offline
    B Offline
    bjoernen
    wrote on last edited by
    #1

    So I needed a web browser component for winforms (like the one included in 2.0). I copied and pasted some code found at various places on the net, removed some dependancies on Interop.SHDocVw.dll (less to distribute) and Microsoft.mshtml.dll (not included in a standard .NET 1.1 distributable), and fixed some stuff like the ability to do window.external.Xxxxx calls to C# code from inside JScript. I have no time to write an article about it. Does CP have a code dump area somewhere? Is this interesting to anyone? Regards, Björn Morén Stockholm, Sweden

    D M C 3 Replies Last reply
    0
    • B bjoernen

      So I needed a web browser component for winforms (like the one included in 2.0). I copied and pasted some code found at various places on the net, removed some dependancies on Interop.SHDocVw.dll (less to distribute) and Microsoft.mshtml.dll (not included in a standard .NET 1.1 distributable), and fixed some stuff like the ability to do window.external.Xxxxx calls to C# code from inside JScript. I have no time to write an article about it. Does CP have a code dump area somewhere? Is this interesting to anyone? Regards, Björn Morén Stockholm, Sweden

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!

      B M E 3 Replies Last reply
      0
      • D Daniel Turini

        bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!

        B Offline
        B Offline
        bjoernen
        wrote on last edited by
        #3

        Daniel Turini wrote: It's called "Sourceforge.net" :-D Regards, Björn Morén Stockholm, Sweden

        1 Reply Last reply
        0
        • D Daniel Turini

          bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          Daniel Turini wrote: It's called "Sourceforge.net" Classic. Michael CP Blog [^]

          1 Reply Last reply
          0
          • B bjoernen

            So I needed a web browser component for winforms (like the one included in 2.0). I copied and pasted some code found at various places on the net, removed some dependancies on Interop.SHDocVw.dll (less to distribute) and Microsoft.mshtml.dll (not included in a standard .NET 1.1 distributable), and fixed some stuff like the ability to do window.external.Xxxxx calls to C# code from inside JScript. I have no time to write an article about it. Does CP have a code dump area somewhere? Is this interesting to anyone? Regards, Björn Morén Stockholm, Sweden

            M Offline
            M Offline
            Michael P Butler
            wrote on last edited by
            #5

            bjoernen wrote: I have no time to write an article about it. You are probably better off waiting until you have time to write an article. I'd certainly be interested in knowing the hows and whys, rather than just seeing the code. Michael CP Blog [^]

            D 1 Reply Last reply
            0
            • M Michael P Butler

              bjoernen wrote: I have no time to write an article about it. You are probably better off waiting until you have time to write an article. I'd certainly be interested in knowing the hows and whys, rather than just seeing the code. Michael CP Blog [^]

              D Offline
              D Offline
              Daniel Turini
              wrote on last edited by
              #6

              Michael P Butler wrote: You are probably better off waiting until you have time to write an article. After working along a few good salesmen, I learned that "I have no time" almost always translates to either "I don't want" or "I don't care". I'd explain this more, but I don't have time for this now :-D Yes, even I am blogging now!

              B 1 Reply Last reply
              0
              • D Daniel Turini

                bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!

                E Offline
                E Offline
                e m
                wrote on last edited by
                #7

                nice:):):):):)

                1 Reply Last reply
                0
                • B bjoernen

                  So I needed a web browser component for winforms (like the one included in 2.0). I copied and pasted some code found at various places on the net, removed some dependancies on Interop.SHDocVw.dll (less to distribute) and Microsoft.mshtml.dll (not included in a standard .NET 1.1 distributable), and fixed some stuff like the ability to do window.external.Xxxxx calls to C# code from inside JScript. I have no time to write an article about it. Does CP have a code dump area somewhere? Is this interesting to anyone? Regards, Björn Morén Stockholm, Sweden

                  C Offline
                  C Offline
                  Custec
                  wrote on last edited by
                  #8

                  :confused:Does this mean you have a managed browser which can be used over the network? The existing browser component in 1.1 is a wrapper and not fully trusted unlike the version 2.0 component. P Custance

                  B 1 Reply Last reply
                  0
                  • D Daniel Turini

                    Michael P Butler wrote: You are probably better off waiting until you have time to write an article. After working along a few good salesmen, I learned that "I have no time" almost always translates to either "I don't want" or "I don't care". I'd explain this more, but I don't have time for this now :-D Yes, even I am blogging now!

                    B Offline
                    B Offline
                    bjoernen
                    wrote on last edited by
                    #9

                    True: I dont care, since there already are several articles out there on the topic. I dont wanna spend one or two days in vain writing. I just wanted to contribute a working solution for those who suck at PInvoke and COM (me included), and who dont wanna spend two days making the tricks work (which I did). I'm not sure an article is the best way to go for all contributions. Just think about what a gigantic code base CP would have if people could dump working code. Sure, a lot of crap, but also a lot of goodies. :-) Regards, Björn Morén Stockholm, Sweden

                    1 Reply Last reply
                    0
                    • C Custec

                      :confused:Does this mean you have a managed browser which can be used over the network? The existing browser component in 1.1 is a wrapper and not fully trusted unlike the version 2.0 component. P Custance

                      B Offline
                      B Offline
                      bjoernen
                      wrote on last edited by
                      #10

                      No it's not stream based. You have to navigate to a file on disk or the Internet to avoid trust issues. It's just a rehash of Lutz Roeder's code: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23%2487PZ4pBHA.1860%40tkmsftngp04&rnum=8[^] Plus implementing UI interfaces described in: http://www.codeproject.com/books/0764549146_8.asp#xx592237xx[^] And finally removing any dependancies on mshtml and the auto-generated AxHost by disassembling those APIs and pasting the relevant interfaces into the source code. No big deal if you are a lot into PInvoke (I'm not). But this is exactly what I want in my project, and I guessed some others would be interested too. Regards, Björn Morén Stockholm, Sweden

                      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