Log in

View Full Version : Hosting a Native Windows Control Within .NET CF


Janak Parekh
01-05-2005, 04: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/d...dowsControl.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 />Pocket PC Thoughts Review Team Member Peter Foot has a nice article up on MSDN -- especially if you're looking to integrate legacy controls into your new .NET applications.