Categories
NETCF

CLS Compliant WaitForSingleObject

Maartens recent blog post highlighted an issue with the current SDF implementation of Core.WaitForSingleObject when used from VB.NET since this method was not CLS Compliant and used unsigned integer types for both parameters and return type. Because of the values used by this function its very easy to convert it to be CLS compliant, so from […]

Categories
Bluetooth NETCF

Toggle Bluetooth on an iPaq device

We can already enable and disable Bluetooth on devices equipped with Microsoft’s Bluetooth stack. In the case of iPaq devices, which use the Widcomm stack, it is possible to toggle the radio state using an API provided in HP’s iPAQUtil.dll. This can be P/Invoked from a .NETCF project like so:- [DllImport(“iPAQUtil.dll”, SetLastError=true)] public static extern […]

Categories
Events NETCF

From the Mobility Road Show

Thom Robbins posts some Powerpoint slides and code from the recent Mobility Road Shows. Check out “Mobility and Visual Studio 2005” for a good overview of NETCF 2.0 development features.

Categories
Desktop Code NETCF

Hosting a Native Windows Control – The desktop approach

Following Neil’s recent post on my control hosting article, I realised that the article had not gone into detail on the differences between the Control class in the full framework and Compact Framework. The Control class in the full .NET framework is incredibly powerful, and when I built the ControlEx class to enable hosting I tried to […]

Categories
Articles MSDN NETCF

Hosting a Native Windows Control – Live on MSDN

My latest .NETCF article is now live in the MSDN library. This is an update of the control hosting article previously published here at OpenNETCF.org. The process has been simplified so that there is now a standard base class (ControlEx) which does most of the hard work for you, the process of hosting a control is […]

Categories
Oddities

Virtual Bob

Virtual PC is a great tool when testing and developing as you run multiple OS versions and configurations on a single machine. However Ben Armstrong has found a more unusual use for Virtual PC – to run Microsoft Bob, the short-lived home oriented shell around windows 3.11 / 95. See the full story including nostalgic […]

Categories
NETCF

Open All Hours

Sometimes you want to ensure that the system will not automatically close down your application when it goes into the background. You can achieve this by handling the Closing event of your main form, the event arguments passed to your handler will allow you to Cancel the close. Therefore you can set a boolean member to […]

Categories
NETCF

The Naked Emulator

If you want to display the standard Pocket PC emulator without the regular skin, so just the screen itself is shown you can modify a couple of the settings files and skin bitmaps. For the default Pocket PC 2002 emulator you’ll find the files here by default:- C:Program FilesMicrosoft Visual Studio .NET 2003CompactFrameworkSDKConnectionManagerBinImagesPocketPC20021033 Make a […]

Categories
NETCF

Great Installation advice on the Smartphone Developer newsgroup

Lars Peter recently posted this excellent post on the microsoft.public.smartphone.developer newsgroup. In the post Lars describes using Nullsoft Installer (NSIS) to build a desktop installation package to include multiple cab file installations. This is ideal for those scenarios when you want to deploy more than just one application cab file, for example OpenNETCF’s Smart Device […]

Categories
Hardware

Orange SPV C500 ROM Update – Go get it!

Spotted over at MoDaCo, Orange have released an updated ROM which fixes the GAPI issues on the device and a few other fixes:- Videos can be sent via MMS Flickering issue in games has now been fixed Packet video full screen mode and backlight fix Improved memory management of the camera and video applications Improved […]