WebBrowser control bug in Compact Framework for WM Standard device

Here’s the scenario – You have a form (StartForm) which has a sub-form (subForm) that contains a WebBrowser control. When the sub-form is disposed (not just dismissed), your startform also shuts down. This is a bug ! This occurs because the Web browser control does a PostQuitMessage() upon receiving a WM_CLOSE message. Now the tricky…

2

VS 2008 renders Windows Mobile Form as a Windows Desktop form !

Ran into a funny problem with Visual Studio, where it got confused and started rendering my Windows Mobile form as a Windows Desktop   instead of   The problem occurs, in my case, due to a combination of two factors 1. This form is inherited 2. Both the forms are localizable = true and have more…


Determine the Platform in .Net Compact Framework 3.5

.Net CF 3.5 introduces the SystemSettings.Platform property in Microsoft.WindowsCE.Forms namespace which provides you the platform of the device the code is executing on. The property is of type WinCEPlatform  enumeration which contains the members WinCEGeneric PocketPC Smartphone  The surprising bit is that since Windows Mobile 6.0, we have moved to the new taxonomy where – Windows…

1

Using unsupported locale in Windows Mobile

Although you can technically change the locale of the device to anything you desire by using the SetUserDefaultLCID , you should only allow it to be set to one of the available locales. Even though your application maybe able to handle the change, this will cause instability to the system. I know for sure that atleast…


Changing the language programmatically in WM 6.0

Localization in compact framework 2.0 is a rather poor cousin of its counterpart in the full framwork 2.0. One of the most annoying (but understandable once the reasons are understood ) issue is that CurrentThread.CurrentCulture does not exist on the Compact Framework. Effectively this means that you cannot localize a specific application. You must change…

1