Categories
NETCF

Need a GUID in a hurry?

There may be times in your application you need to generate a new unique Guid. The System.Guid class in .NETCF v1.0 doesn’t have the NewGuid method which is what you would normally use on the desktop. There are a couple of proposed alternatives, either generating one yourself by following the standards for Guids – using a […]

Categories
NETCF

Create a Top-Most form

The following code can be used to force your form to the top of the z-order. Use this functionality with care since it’s bad practice to hog the topmost position which could obscure other important functionality. private void Form1_Load(object sender, System.EventArgs e) {       //get handle       this.Capture = true;       IntPtr hwnd = OpenNETCF.Win32.Win32Window.GetCapture(); […]

Categories
Events NETCF

.NETCF Chat Tomorrow

As part of a regular series of .NETCF technical chats there will be an MVP hosted chat tomorrow (14th October) on any aspect of .NET Compact Framework and Smart Device programming. 10-11am PDT, 17-18 GMT Add a reminder to your calendar More details, and details of other technical chats, here at MSDN.

Categories
NETCF

Bring a .NETCF Form to the foreground

Sometimes calling BringToFront for your form is not enough to bring your app to the foreground. You can P/Invoke SetForegroundWindow which will activate your app and bring the window to the front of the Z-Order:- C#public void SetForegroundWindow(){    this.Capture = true;    IntPtr hwnd = OpenNETCF.Win32.Win32Window.GetCapture();    this.Capture = false;    OpenNETCF.Win32.Win32Window.SetForegroundWindow(hwnd);}or VBPublic Sub SetForegroundWindow    Me.Capture = True    […]

Categories
NETCF

Fixing ComboBox bugs…

The standard ComboBox in NETCF has a couple of “issues”, however it’s possible to workaround them with a bit of tweaking. I rolled together a number of these fixes into a ComboBoxEx class. Heres the code (C#), I hope this (with a few more missing features) will be in the next SDF build with designer […]

Categories
Events

Are you a UK Smartphone User or Developer?

If so then you’ll be interested to know that MoDaCo will be hosting a Smartphone event in Birmingham on Saturday 6th November. This will have both developer and non-developer content running in parallel. Full details with venue and sign-up details here. It looks like it’ll be a very interesting event for all and on a much bigger […]

Categories
Oddities

Blogging from beside the seaside!

Thanks to an administrative blunder in a European Union statistics report, I’ve found out that I actually live nearer the seaside than I thought, it seems Wales has disappeared 🙂   More details on the BBC News site

Categories
NETCF

Some new OpenNETCF code

I’ve uploaded to our online source browser some of the new code which will feature in the next Smart Device Framework release. This includes a new library for WindowsCE specific functionality, designed to match the new functionality available in the Microsoft.WindowsCE.Forms assembly in the .NET Compact Framework v2.0 which is currently in Beta with Visual […]

Categories
Beta NETCF

New Visual Studio 2005 edition announced

One of the stumbling blocks to getting into .NETCF development today is that the only supported tool for development is Visual Studio 2003 Professional or higher. Microsoft announced today at VSLive a new addition to the Visual Studio family in the 2005 version – Visual Studio Standard Edition. This will be a significantly cheaper version […]

Categories
Hardware NETCF

Keep your Smartphone backlight on

If your application involves displaying screen content you probably have come across the issue where the screen backlight turns off after a few seconds of no keypresses. You can override this behaviour in your application using a couple of underdocumented API Power-Management functions. Here is a VB.NET snippet for .NETCF to keep the backlight on:- […]