I have created my very first Windows Mobile App!
This is running in an Emulator using the Professional SDK.
I also tried to deploy the solution to my physical device (my Smartphone), which also worked:
To be honest, the biggest challenge is to setup everything so that you can get going.
A couple of useful links to get going
Location to download Windows Mobile 6 SDK:
http://www.microsoft.com/downloads/d...DisplayLang=en
The Windows Mobile 6 SDK is not included in Visual Studio 2008, you will have to download and install it.
Create your first WM6 App:
http://code.msdn.microsoft.com/WM6YourFirstApp
A good video to help you get started.
Windows Mobile Development Center:
http://msdn.microsoft.com/en-us/wind...e/default.aspx
This contains a lot of good links for getting started and how to do things.
Security Configuration Manager:
C:Program FilesWindows Mobile 6 SDKToolsSecuritySecurity Powertoy
When you have installed the SDK – go to this location and install the security configuration manager to be able to setup your device so that you can deploy your solution and debug it.
Note: I did struggle quite a bit to get network access up running on the device and on the emulator, but once I got the emulator setup to have network access (connected to Internet – not Work) and I had access through the firewall to my host machine – then everything worked fine.
The scenario
Please read
this post to get a brief explanation of the scenario I will implement on a Windows Mobile Device.
.net 3.5
We will use 3.5 of the compact .net framework to build our application and whether you select Professional (first picture) or Standard (second picture) really doesn’t matter. First thing I do is to create two Web References from my app to the two Web Services i use in my scenario – SystemService (SystemServiceRef) and Customer Page (CustomerPageRef).
These Web References are pretty similar to .net 2.0 Web References from the normal .net framework (look
this post). One thing to note is, that you do not have UseDefaultCredentials in the compact framework so you need to specify user and password when connecting to NAV Web Services.
The project type is a Device Application and the code on the form is:
using System;
using System.Windows.Forms;
using SmartDeviceProject4.SystemServiceRef;
using SmartDeviceProject4.CustomerPageRef;
using System.Net;
namespace SmartDeviceProject4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
string baseURL = "