WebBrowser hack
-
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
-
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
bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!
-
bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!
Daniel Turini wrote: It's called "Sourceforge.net" :-D Regards, Björn Morén Stockholm, Sweden
-
bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!
Daniel Turini wrote: It's called "Sourceforge.net" Classic. Michael CP Blog [^]
-
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
-
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!
-
bjoernen wrote: code dump area It's called "Sourceforge.net" Yes, even I am blogging now!
-
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
-
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!
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
-
: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
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