Saturday, September 1, 2012

Pocket PC Project in Visual Studio 2005

In this post I am going to create a Pocket PC2003 Project in Visual Studio 2005.

To get an overview of Visual Studio 2005 you can visit my previous post on below link:
Visual Studio 2005 Window Application Project

Step 1 (Open Visual Studio 2005):
Open Visual Studio 2005 from Programs menu and then click File menu option and select Project option from New Sub menu.




Step 2 (Visual Studio 2005 Pocket PC 2003 Project):
New Project window gets shown. Click on Smart Device Project Type which contains Pocket PC 2003 option, click on it and select Device Application option from the Templates. You can change the default Name of Project, Location and Solution Name and then click OK.



Step 3 (Pocket PC 2003 Project):
Project gets loaded in Visual Studio and you can see the below screen shot which contains the Solution Explorer containing files used in project. I have added a Button from Toolbox to the default form on Pocket PC and names it  Show Message on Click. I have added a click event for this Button and added following code in it.

private void button1_Click(object sender, EventArgs e)
{
     MessageBox.Show("Button Click Message.");
}


I have changed Button Text using Properties Window Text Property which I have highlighted.



Step 4 (Deploy Pocket PC Application on Simulator):
Next click on Debug button in Menu bar which loads the following Window asking for selecting the Device on which to deploy and test the application. Currently I have select the Second option. If you have a Pocket PC then you can connect it with your PC and can select the first option. The other three options below second option could also be selected if you don't have Pocket PC..



Step 5 (Pocket PC Application Deployed):
Here you can see your applications gets deployed to Pocket PC 2003 emulator.




Step 6 (Application Button Click):
Click on the button shown in Application Show Message on Click. When you click it the click event we have written for it will be called and a message box gets displayed inside the emulator.


Hope you have enjoyed this post. I really appreciate your participation to make this post better.

No comments:

Post a Comment