The .netcf 2.0 provides a web browser control. This inspired me to try and create my own Web Browser based on .net technology.
The “WebBrowser” control has some serious limitations. These include:
No “Title” property
Back/Next not supported (on 2003 only?)
Can’t access the “Document” object
Can’t change the context menu
Inability to set options such as formatting, cleartype, textsize etc (ie Anything useful)
Inability to access/invoke the favorites infrastructure
If you think about it, these are fairly major.
I overcame most of these problems in a few ways in Webby.
If you’re interested, feel free to ask questions by leaving comments on this post.
hi, I got the problem of “access the “Document” object” of webBrowser control. Could you tell me how to solve it?
How to disable the context menu in system.windows.forms.webbrowser
Yeah, I’m curious about how to disable the ContextMenu…
I have created a reusable class that will allow you to disable the context menu for a WebBrowser control. I’ve posted an article at: https://anoriginalidea.wordpress.com/2007/12/31/disabling-the-context-menu-in-the-net-cf-webbrowser-control/
Hello, I’m currently developping a software for Windows CE 5.0 with the .Net Compact Framework 2.0sp2 in C# that makes usage of the WebBrowser component, and I must interact with the web page loaded (fill text in a textbox on that page and submit the form. And I have the “Can’t access the “Document” object” problem. Any help would be greatly appreciated as directions how to solve this.
Thank you
Nicolas
Hi Julian,
You seem to have cracked some things that could be very valuable for the rest of us. Some of my questions (related to Smart Device .NET WebBrowser control) are:
1. Accessing the document innerHTML
2. Interact with the document loaded within the webbrowser control… like getElementById
3. Capture HTML form events from the container application
Impatiently waiting for a reply.
Hi “John”,
I was unable to do this directly, desipite repeated attempts.
To get the html for my “Webby” web browser I did a http call directly and bypassed the control entirely.
Regards
Julian
Hi, can we have a code example on how we can use web controls?
i want to be able to set text, press buttons, etc. getElementById.
have you managed that?
No I’m afraid not. The pocket ie browser seems to primitive.