Search Wiki:
Resource Page Description
Making use of multiple threads can help giving end customers a better responsive application. If you decide to run long lasting operations on a separate thread your users are still able to do other things in parallel with your application. However, multithreading also adds complexity to your application.

On this Code Gallery page you will find the accompanying sample code of the webcast titled 24 Hours of Windows Mobile Application Development: .NET CF Asynchronous Programming Techniques.

The first sample available in the downloadable Visual Studio 2008 solution, shows you how to create a good responding application by making use of a worker thread. The sample is divided into multiple projects, to show you different approaches on how to properly terminate the application while the worker thread is still running.

The second sample shows you how to properly update user interface controls on worker threads.

The third sample shows you how to call out asynchronously to Web Services. Since this sample makes use of the MapPoint Web Service, you need to obtain a developer account in order to run the sample. More information about getting a developer account for MapPoint can be found here.

Since MapPoint has been renamed to Bing Maps, you might run into issues with the third sample. Over time the sample code to call out to Web Services might be updated to show you Bing Maps in action.

The last sample shows you how to add asynchronous support to methods inside your own classes in several different ways.

For more information about asynchronous programming techniques for Windows Mobile Devices, you can take a look at the Webcast in which we showed this sample code. This Webcast is currently available for on-demand viewing.

Last edited Oct 12 2009 at 9:47 AM  by Maarten_MVP, version 3
nickfox wrote  Aug 18 2009 at 9:29 AM  
where is the freakin code?

Maarten_MVP wrote  Oct 12 2009 at 9:49 AM  
The code is now available for download. Note that the third sample needs some work, because MapPoint has been renamed to Bing Maps.

Page view tracker