How to Create Applications for Windows Mobile .Net

How to Create Applications for Windows Mobile .Net thumbnail
Create Windows Phone applications using C#.

Knowing how to create Microsoft Windows Mobile Phone applications can help you generate extra income if you release applications and sell them. As of November 2010, Windows Mobile applications are developed only using C#, an object-oriented programming language also used to create desktop applications. In a few steps you can create a very simple Windows Mobile application, and you can create advanced applications once you learn how to access other functions in the mobile device.

Things You'll Need

  • Microsoft Visual Studio Express for Windows-based phone
Show More

Instructions

    • 1

      Launch Microsoft Visual Studio Express for Windows Phone and select "New Project" from the left pane of the window. Click "Installed Templates, expand "Visual C#," then select "Silverlight for Windows Phone." Select "Windows Phone Application" from the center pane of the window, then click "OK."

    • 2

      Select "Toolbox" in the left pane of the window and double-click "TextBlock" to add a new Text Block control. Double-click "Button" to add a new button to the phone application.

    • 3

      Select "Windows Phone 7 Emulator" as the target for the project. Double-click "Button" to open the "MainPage.xaml.cs" file.

    • 4

      Press "Ctrl" and "A" on the keyboard, and press "Delete" to delete all existing code.

    • 5

      Copy and paste the code below to display text in the Text Block control when you click the button:

      using System;

      using System.Collections.Generic;

      using System.Linq;

      using System.Net;

      using System.Windows;

      using System.Windows.Controls;

      using System.Windows.Documents;

      using System.Windows.Input;

      using System.Windows.Media;

      using System.Windows.Media.Animation;

      using System.Windows.Shapes;

      using Microsoft.Phone.Controls;

      namespace WindowsPhoneApplication7

      {

      public partial class MainPage : PhoneApplicationPage

      {

      // Constructor

      public MainPage()

      {

      InitializeComponent();

      }

      private void button1_Click(object sender, RoutedEventArgs e)

      {

      textBlock1.Text = "This is my first Windows Phone application";

      }

      }

      }

    • 6

      Press "F5" to run your program, then press "Button."

Related Searches:

References

  • Photo Credit numeros binarios image by juanjo tugores from Fotolia.com

Comments

You May Also Like

Related Ads

Featured