OpenNETCF HTMLViewer-Control and Hyperlinks

  • Thread starter Thread starter Dirk Behrendt
  • Start date Start date
D

Dirk Behrendt

Hello!

I use the HTMLViewer-Control from OpenNETCF on a WINCE-device.

I want to create a hyperlink, which has no line under the Hyperlink-Text.

I use the following HTML-Code, which I assign the Source-Property of the
HTMLViewer-Control. Normally with 'style="text-decoration: none"' you can
force no line. It works fine on PC and with IE on the device but not with
the HTMLViewer. Has anyone an idea what is wrong?

<html>
<head>
<body>
<a href="www.web.de" style="text-decoration: none">My Hyperlink</a>
</body>
</html>

Many Greetings

Dirk
 
The OP mentioned that the "style" attribute is perfectly working within the
IE. This leads me to the conclusion that the HTMLView component and the IE
aren't using the same HTML rendering engine. Is this correct?

Is there a way to create a replacement for the OpenNETCF's HTMLView control
using the IE for displaying HTML content? Is it possible to host the IE
within a .NET CF Form?

Greetings, Christian
 
To tell the truth, I though that he just confused two platforms: WinCE
and PocketPC. For WindowsCE the HTMLView.dll is an optional component
and can be not included into image and as far as I know, OpenNETCF's
WebBrowser doesn't work for most of WindowsCE devices (because it uses
HTMLView).

About embedding IE into CF form :- yes, this is possible. Take a look at
my example how it can be done:
http://www.sergeybogdanov.com/Samples/WebBrowserCE.zip
 
and PocketPC. For WindowsCE the HTMLView.dll is an optional component and
can be not included into image and as far as I know, OpenNETCF's

Yes, it's an optional component (part of the help system component - IIRC).
But I'm pretty sure it can be included into the OS image. At least it's
included in the OS image of the devices we're using (Windows CE .NET 4.1).
About embedding IE into CF form :- yes, this is possible. Take a look at
my example how it can be done:
http://www.sergeybogdanov.com/Samples/WebBrowserCE.zip

Many thanks for this example. I'll look into it as soon as possible. Maybe I
can manage to write a new HTMLView control which is to a large extent
compatible to the OpenNETCF's HTMLView control (WebBrowser control in the
later OpenNETCF versions) and uses the IE under the hood...

Greetings, Christian
 
Yes, it's an optional component (part of the help system component -
IIRC). But I'm pretty sure it can be included into the OS image. At least
it's included in the OS image of the devices we're using (Windows CE .NET
4.1).

Yes, in fact it's included when the "Help" item is selected from the catalog
(not IE as one would expect).
Many thanks for this example. I'll look into it as soon as possible. Maybe
I can manage to write a new HTMLView control which is to a large extent
compatible to the OpenNETCF's HTMLView control (WebBrowser control in the
later OpenNETCF versions) and uses the IE under the hood...

With CF 2.0 you can use COM interop and get all of it's features that way.

-Chris
 
Back
Top