Creating programs that run on Windows Mobile phones is just as easy as writing apps for the desktop. Follow the steps on this page and you'll have a running Windows Mobile application.
Create, Build, and Run an Application
Here's how to create and run an empty Windows Mobile application:
| Create a smart device project. Open Visual Studio 2008. On the File menu, select New->Project. In the Project Types pane on the left, expand Visual C# and select Smart Device. In the Templates pane on the right, select Smart Device Project and click OK. When the Add New Smart Device Project wizard pops up, select Device Application and click OK. |
| Add a little functionality. From the Toolbox pane on the left, select a button and drag it onto the form in the design view. Double-click the button to create a Click event handler. In the handler, type the following line of code:
button1.Text = “Click!”; |
| Build and deploy your application. To run your application on a Windows Mobile device, make sure it is connected to the desktop. Press the F5 key. From the drop-down list, select a device or an emulator to deploy to, and click OK. Your application should be up and running. |
Next Step
Once you’ve completed a simple application, find out what else you can do with Windows Mobile.
No comments:
Post a Comment