I discovered this blog entry by way of SmartMobiDevice.com and thought that it was something I should share. If you've ever made your own controls for Windows Mobile you know that if the control is making any P/Invoke calls to native methods then it will not render in the designer. Simon Hart has a simple solution for this. The identity of the application domain is different on the desktop and in Windows Mobile devices and using that identity he conditionally makes the P/Invoke call which results in a design friendly control. To see his example source code read on.
Tags: Windows Mobile