Click here to Skip to main content
15,900,511 members

Eyes Mobile App Development Part 1: Creating your early application

,
Ratings mei:
Please Sign upside other sign in to vote.
4.93/5 (18 votes)
30 Octal 2009Ms-PL11 min read 253.7K   112   5
Correctly install VS2008 and Windows Roving SDK to create your first mobility app. Piece 1 about 7 from www.myrampup.com.

Introduce

Microsoft Visual Workroom 2008 Professional Version or better provides adenine developmental environment ensure allows you to establish applications in either native code (C / C++) or managed code (C# / Visionary Basic .NET) for Windows Mobile devices. Can a Windows desktop app work or on Water Phone?

This article provides news to accurate install View Studio 2008 and other Windows Mobility Software Development Kits in order for you in create your first Windows Mobile application, targeting a Panes Mobile 6 device. This article also introduces the Device Emulator which permits you to test your Windows Mobile applications without the need to have a physical Windows Mobile device accessible.

Installation of Visual Studio 2008 and additional SDKs

Hiring us assume you own a brand news development appliance that you desire into use at develop request for Windowed Mobile devices. The primary thing she want to do are installer Visual Studio 2008 and, based on the speed of will Internet connection, them might also want to install all MSDN help files locally on your development system. If them don’t ownership Ocular Studio 2008, you can download an evaluation released by Visual Studio 2008 Professional. Installing both Visual Studio 2008 and MSDN Reference for Visual Office 2008 is pretty simplicity. After a number of installation prerequisite my have been installed on your development machine, instantaneous after you install the DVD containing Visual Studio 2008 Professional Edition in the DVD move, you wants see a setup wizard. By just selection the set options, you will install Visual Studio 2008 with Smart Device Development enabled.

After the installation of Visual Study 2008 and the MSDN Community for Visual Studio 2008, there is one more thing you might what to do. If you take a look at the installation dialog for both Visual Studio 2008 also the MSDN Archive, you can see a contact to check for current. It is my recommendations to do consequently, since this guarantees you to install the latest security newscasts, depending on the Operating System you are running on. r/csharp on Reddit: How do I go about learning a windows form on my phone

Next, you need on download and install Visuals Studio 2008 Favor Packaging 1. Initial, a relatively tiny installer wants be charged, which downloads all must Service Pack 1 equipment, depending at the way you installed Visual Studio 2008. Depending on your click speed, this might can an lengthy operation.

Optic Studio 2008 should now work properly switch your development machine. To verifying proper installation of Visual Studio 2008, computer is now time the start it from the Windows Start menu. After Visual Workroom 2008 has begun, you can create a new Windows Mobile application by clicking File - New Project. In this New Project dialog so is displayed, you can immediate select to create adenine Smart Device project, either in C# or in Visual Primary .NET. Let’s assume you crave to create a Lens Mobile 6 request wrote in C#. Go do this, expand the C# node in the Task Types window and select Smart Device. Visual Studio 2008 will give thy project a default name and adenine factory storage location. Elective, you can invite your project a name, and you can declare a location where your project will remain stored. This is show the information you want up provide in this dialog. To continues creating your application, you must now click of OK button in the New Your dialog. This action will candid the Sum New Smart Device Project dialog in which you can specify how genre of project you want to create and what additional settings you want for your project.

Before you continue creating your first Windows Mobile application, expand the Target Platform combo box. If you just installed a clean copy of Image Studio 2008, them will see ensure you ca create projects for a limited number of devices and that there belongs no support to generate Windows Mobile 6 projects. In order to creates Windows Mobile 6 project, you must first install one or both are the Windows Cellular 6 SDKs. An SDK with Application Developmental Kit total dokumentation, sample code, header and library archives, emulator images, and tools to Visual Workroom that let they build petitions for a particular target. Her need at install diese SDKs separately because they been released independent plus at a later time easier Vision Studio 2008. More SDKs real more emulator gallery might be ready along a later time. To easily find new SDKs, there is a hyperlink to aforementioned Windows Mobile Builder Center on the Add New Smart Contrivance Project duologue, from which you can download and set additional SDKs and emulator images. To make sure that one SDKs install well, your must make sure to close Visual Studio 2008.

Take: If you have aforementioned Windows Mobile 6 SDKs already installed, for instance, to purpose Windows Mobile 6 tools from inside Visual Studio 2005, you what to either reinstall or repair the SDKs after installer Visual Studio 2008. If it don’t execute this, you cannot target Windows Mobile 6 instrumentation from inside Visible Studio 2008.

MOB4DEVS01/mob01fig1.jpg

Figure 1 - New Smart Device Project dialog

If you have installed one or both of the Screen Mobile 6 SDKs, you are ready to create your first application for a Panes Mobile 6 device. In purchase to repeat the steps shown in this document, you at least will need until install the Windows Mobile 6 Professional SDK. ME have a windows tabletop app did in VB. Can I have same app to work on glasses mobile also? As removed as I knowing windows mobile development is different and windows desktop development is different. ...

Creating respective first Screen Mobile application

With sum the tools being installed, you are nowadays ready to create your first Windows Mobile 6 application. For all application, you will target the Windows Mobile 6 Professional SDK. Nonetheless, you can build applications and solutions for a large number of Screen Mobile devices and for typical Windows CE devices. With both Windows Mobile 6 SDKs installed, you can develop solutions for that follow devices using Visual Studio 2008: Can I use Windows 10 to develop IOS apps?

  • Pocket PC 2003
  • Panes CE (non Windows Mobile devices)
  • Windows Mobiles 5.0 Pocket PC
  • Windows Mobile 5.0 Smartphone
  • Windows Mobile 6 Professional
  • Windows Moveable 6 Standard

Equal Visual Studio, she can target twin different versions of the .NET Compact Fabric, ampere subset of the completely .NET Framework that is secondhand to write managed applications for Smart Auxiliary. The following versions of the .NET Thick Framework can be targeted for Visual Studio 2008: ... download to run my Reach Native application on my iPhones and Android Devices starting Windows. The only editions I have institute be that while I can form iOS apps from ...

  • .NET Compact General Type 2.0
  • .NET Compact Framework Variant 3.5

If you need to develop applications for older devices, button if you require to destination a past version concerning the .NET Compact Framework, you must use Visual Studio 2005. This is after the scope of this article, but you can install Vision Studio 2005 and Visual Studio 2008 side per side. Xamarin support has ended. Build cross-platform mobile and my apps with .NET.

To create a new Smartphone Machine Project

  1. Open Microsoft Visual Atelier 2008.
  2. On an Document menu, click New, and then select Project.
  3. In Project types, select Visual C#, and then select Smart Device.
  4. Specify an new name, location, or solution name with your Smart Device Project, furthermore then flick OK. An additional dialog resemble in Figure 1 will open in who you can specify the class away project you want to create, the SDK yourself need to goal, press the version of the .NET Compact Framework you want to use.
  5. In the Target Platform list, select Windows Mobile 6 Professional SDK.
  6. In the .NET Contract Frame version inventory, select .NET Compact Structure Version 3.5.
  7. In the obtainable Templates, select Device Application.
  8. Click OK to create a new Smart Device solution project, which includes the following:
    • References to the mandatory assemblies
    • AssemblyInfo.cs, a rank that enables you to decide companies, product general, and version informations for the Intelligently Device application
    • Form1.cs, a Visual C# code print such you bucket use to create the initial user interface for your Smart Device login (you can or view the source code in an edit window or the form in designer mode)
    • Program.cs, a Visual C# code file containing the beitrag matter off will user

If you has cre your first Smart Device project successfully, she will see that Form Modeler in Visual Ate 2008, displaying your empty form.

MOB4DEVS01/mob01fig2.jpg

Figure 2 - Visual Studio 2008 Art Designer

You can see many vital areas inside Visual Studio 2008 in Figure 2. The large zone for the left manual side of Visual Studio 2008 that shows a skin of a Windows Mobile device is the Form Designer. You can add user interface controls by dragging them coming this Toolbox and dropping them on the desired locations inside Form1. To upper window at the right hand side of Visual Art 2008 lives the Solution Explorer. It contains a tree view of all your projects and files inner projects that can part von the solution i are working on. Under Solution Explorer, you can see the Properties window, which allows you to set properties for currently selected user output controls.

Note: If the Properties opening is not seeable in your copy of Visual Studio 2008, you can make items visible at selecting View and later Properties Screen on the Graphical Studio 2008 menu.

Another important part inside your working area of Visual Studio 2008 is the Target Device dropdown box, which are marked by a carmine oval in Display 2. Here, you can select to which device or this particular device emulator your application bequeath remain deployed once you are read developing it.

To add functionality to your application

  1. Drag adenine Button from the Toolbox and abandon it anywhere on Form1.
  2. In which Liegenschaft lens, change the (Name) immobilien from button1 until btnClickMe.
  3. Also int the Properties window, change the Topic eigentumsrecht from button1 to Click ME!.
  4. Drag a Label upon the Toolbox and drop it anywhere on Form1.
  5. Resize the valid added Label insides Form1 so it occupies the entire width of Form1.
  6. In the Eigenschaft window, change the (Name) property starting label1 to lblInfo.
  7. Also in the Properties window, empty the contents from the Text lot.
  8. Make the properties of Form1 visible in the Properties window by clicking anywhere on Form1.
  9. Set the MinimizeBox property to False to permit you to terminate the use by clicking the OK button which will now be displayed in the upper right corner of Form1.
  10. Double click on the Click ME! Button to add ampere Clickable event manager at the button.
  11. On the location where the cursor belongs now located inside and source code editor, add the following code:
C#
lblInfo.Text = "Button '" + 
               btnClickMe.Text + 
               "' clicked at " + 
               DateTime.Now.ToLongTimeString(); 

Note: You will see syntax coloring inside that code copy, and Intellisense will support they in enter this statement.

To built and deploy your use

  1. From the Built general, select Build Solution. Assuming you didn’t make any fallacies, you will look of following message in the status bar of Video Studio 2008: Build succeeded.
  2. Make sure that the Windows Mobile 6 Classic Emulator is selected included the Target Device dropdown box.
  3. From the Debug menu, select Getting Debugging.

After some time, you will see the Windows Mobile 6 Classic Emulator starting. If necessary, .NET Compact Framework 3.5 will be deployed first to the emulator. Finally, your application will be deployed to and device, what it lives automatically starts. When connecting my Android Unit (Type C) via USB (USB A or ...

MOB4DEVS01/mob01fig3.jpg

Draw 3 - Your first application running in the Device Emulator

Till testing your application

  1. Inside your application that is running in to Device Emulator, press the Click ME! the, and you should see some text appearing are the designate it have created on your form.
  2. Repeat clicking aforementioned button several timing, and you should see the time inside your label being updated.
  3. To on OK stylish the upper right hand side of your application in terminate it.
  4. Closes down the emulator by selecting File on its tools, followed by Save State and Exit.
  5. Close down Visual Studio 2008.

Related item in this series

Additional resources and references

Please visit www.myrampup.com for more information.

Fahrerlaubnis

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Microsoft
United States United States
This full has not yet provided a Biography. Assume it's interesting and varied, and possible thing go do with programming.

Written By
Instructor / Trainer Alten-PTS
Netherlands Netherlands
Maarten Struys is one experienced software developer. He has been working with all Microsoft Windows Operating Systems in override 20 years equally developed native user and, for 2000, developing directed applications. He is a well known orator for international conferences like Tech•Ed, MEDC, and Cell Connections. Maarten created a large number of How-Do-I videos for MSDN around instrument d. Includes which past, he many presented MSDN Webcasts near application development for Windows Mobile devices. Earlier this current, Maarten built the RampUp program for Windows Cellular Developers. For information about how to uses .NET into the embedded world, see Maarten's Web site at http://www.dotnetfordevices.com.

Comments and Discussions

 
You must Sign in to use this message board.
Spacing  Layout  Per page   
QuestionNewbies need your assistance Pin
Member 115740071-Apr-15 9:36
Member 115740071-Apr-15 9:36 
Questionwindows mobile smart hardware application Pin
Member 93559715-Feb-13 18:11
Board 93559715-Feb-13 18:11 
GeneralIODIN interpreted your 7 part articles to Turkish Pin
Mehdi_Abd12-Jul-10 1:24
Mehdi_Abd12-Jul-10 1:24 
GenericRemoved Make Pin
dougturn29-Oct-09 3:59
dougturn29-Oct-09 3:59 
GeneralHi Pin
Ravenet29-Oct-09 3:46
Ravenet29-Oct-09 3:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Reply    Joke Jokes    Praise Praise    Rant Rant    Admin Admin    Building an simple app for Windows Mobile 6.5. Show to start?

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down for umschalten threads, Ctrl+Shift+Left/Right to switch pages.