Log in

View Full Version : Hosting A Native Windows Control In .NET CF


Kris Kumar
01-04-2005, 11:00 PM
<div class='os_post_top_link'><a href='http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/HostingANativeWindowsControl.asp' target='_blank'>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/HostingANativeWindowsControl.asp</a><br /><br /></div><i>"If you already have invested in creating a native window control and wish to use this in your .NET Compact Framework code, or you would like to take advantage of some of the intrinsic Windows CE controls which are not directly supported by the .NET Compact Framework, you will need a method of interoperating with native window controls. The OpenNETCF Smart Device Framework features a new custom implementation using the MessageWindow class. This uses Platform Invoke to create a visible window which is capable of hosting native controls. This article will look at how to create a custom control to host a native windows control – my example will be a managed control around the HTML control available in Windows CE."</i><br /><br /> <img src="http://www.smartphonethoughts.com/images/Kris-DotNetCompactFramework.jpg" alt="User submitted image" title="User submitted image"/> <br /><br />Peter Foot has written an article for MSDN which discusses how to host a native control like the HTML Web Browser control in your .NET Compact Framework based application.