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.
From the BlogEngine Archives
Posts may contain products with affiliate links. When you make purchases using these links, we receive a small commission at no extra cost to you. Thank you for your support.
Mastodon: @j2inet@masto.ai
Instagram: @j2inet
Facebook: @j2inet
YouTube: @j2inet
Telegram: j2inet
Twitter: @j2inet