advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Are you planning to obtain the .NET Compact Framework by upgrading to Visual Studio .NET 2003 or by purchasing it separately? Are you already doing mobile application development with .NET? Let us know in the wireless.general discussion group.
Partners & Affiliates
advertisement
advertisement
Average Rating: 3.9/5 | Rate this item | 8 users have rated this item.
 Print Print
 
Developing Pocket PC Applications In Visual Studio.NET
Microsoft's Visual Studio .NET 2003 ships with a new project template called "Smart Device Application," which lets you target the .NET Compact Framework to build PocketPC applications in almost exactly the same way you build Windows Forms applications.  

advertisement
n a previous article, I discussed developing mobile applications using the Microsoft Mobile Internet Toolkit (now renamed "ASP.NET Mobile Controls"). Microsoft designed the ASP.NET Mobile Controls to help developers build applications that run on devices with limited processing power, such as mobile phones, where much of the application logic resides on back-end Web servers.

In contrast, the .NET Compact Framework (.NET CF) is a scaled-down version of the .NET Framework, which you use to build applications that run on specific mobile devices with sufficient processing power. .NET CF supports only devices running Microsoft operating systems—specifically, Windows CE 3.0 (used in Pocket PC 2000 and Pocket PC 2002 platforms) and Windows CE.NET. The idea behind .NET CF is that it provides a familiar environment for desktop developers to build applications for mobile devices. This article shows you how to use Visual Studio to develop mobile applications that run on the Pocket PC.

Figure 1. To create a new Smart Device Application project, select the appropriate template to from the New Project dialog.
Developing a Pocket PC Application
In this article, you'll see how to build a Pocket PC application using Microsoft Visual Studio .NET 2003 (currently in final beta, but due to be released in early 2003). The sample application described in this article is a text editor that lets users check for word definitions, spell-check words, and translate text to different languages. All these capabilities are available via live Web services.

Figure 2. Choose the project type from the Smart Device Application Wizard.
To get started, you first create a new Smart Device Application project using your preferred language (the sample code uses Visual Basic .NET). Figure 1 shows the New Project dialog.

Selecting the Smart Device Application template launches the Smart Device Application Wizard, which asks you to select a platform and project for the application you want to build. For this project, choose Pocket PC and Windows Application (see Figure 2).

As you can see in Figure 3, the Visual Studio environment when developing a Pocket PC application is very similar to developing a Windows application.

Figure 3. The Visual Studio .NET interface loaded with a new .NET CF application.
The familiar Toolbox contains the available .NET CF controls, which are a subset of the Windows Form controls. One vital fact to bear in mind when building .NET CF projects is that not all the methods and classes in the full .NET Framework are available in .NET CF. Due to the limited processing power inherent in mobile devices, the .NET CF team at Microsoft removed a large subset of the methods available in the full .NET framework. The resulting lean .NET CF framework runtime requires a mere 1.5MB footprint.

  Next Page: Building the Sample Project
Page 1: IntroductionPage 4: Setting Up the Web Services
Page 2: Building the Sample ProjectPage 5: Testing the Application
Page 3: Setting Form Properties and Coding Event Handlers 
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES