Groups | Blog | Home
all groups > dotnet compact framework > july 2007 >

dotnet compact framework : How to a UserControl derived control in the Internet Explorer


Ullrich NO[at]SPAM Praetz.de
7/12/2007 11:51:04 AM
Hi All
It is possible to integrate a UserControl derived controls in html
pages the Internet Explorer in Windows XP by using the <object> tag.
Now I create a create a fresh "Visual C# > Smart Device > Pocket PC
2003 > Control Library" project, but it is not possible to use this
control successful in a html page in the Mobile Internet Explorer. Is
this generally possible. And if yes, why not in my environment. I'm
using Windows Mobile 5.0 and the Compact Framework 2.0. Maybe the
security zone settings are the problem, but I don't know how to change
them. This page is always classified as "Internet", but using .NET
control in the IE may have more rights.
Peter Foot [MVP]
7/13/2007 12:00:00 AM
This is not possible. On Windows CE you have to write an ActiveX control in
native code - the Compact Framework doesn't support COM registration of
managed classes.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

[quoted text, click to view]
Ullrich Praetz
7/13/2007 12:00:00 AM
Thank you Peter,

I supposed, that the integration of a .NET Control don't require COM.
On Desktop as well as on Windows Mobile.
Embedding an ActiveX control in a html page is little different. For
embedding a .NET control I used the following tag:

<object id="HelloWorldControl1"
classid="Map24Control.dll#Map24Control.Map24Component"
height="500" width="500" viewastext>
</object>

Regards, Ulli


On 13 Jul., 10:06, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
[quoted text, click to view]

AddThis Social Bookmark Button