
|
Pocket PC Application #1, Hello World, using VS.NET 2003
|
|---|
|
Pocket PC Application #1, Hello World, using VS.NET 2003
Learn how to build Pocket PC mobile applications with this introductory project using .Net 1.1 and VS.NET 2003
Category: .Net Framework 1.1, Smart Devices, Pocket PC, Visual Studio .NET 2003,
Posted 5/31/2003,
By Mike G.
My First Pocket PC Application, Hello World!
- Startup Visual Stidio .NET 2003
- Choose Smart Device Application from the New Project dialog box.
- Enter PPCHelloWorld for the project name.
- Click on OK.
- Set What platform do you want to target? to Pocket PC and
What project type do you want to create? to Windows Application.
- Click on OK.
- Click on the mainMenu1 control icon toward the bottom then click on the menu item box toward the
bottom of the Pocket PC form window then type Hello World!.
- Double-click on the Hello World! menu to create a click event handler then
type in the following code: MessageBox.Show("Hello World!");. The event handler method
should like like this:
private void menuItem1_Click(object sender,
System.EventArgs e)
{
MessageBox.Show("Hello World!");
}
- Press the F5 key to test the application.
- Choose Pocket PC Emulator 2002.
- Click on Deploy (it will take a while so be patient).
- Test the application by clicking on the Hello World! menu at the bottom of the app.
- Close the Pocket PC 2002 window.
- Choose Turn off emulator (otherwise you may not be able to test it again - a sharing
violation may occur) from the drop-down menu.
|
|