Required Tools
Visual Studio 2005
Windows Mobile 6.0 SDK
ActiveSync
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8
9 namespace FirstSmartphoneApp
10 {
11 public partial class Form1 : Form
12 {
13 public Form1()
14 {
15 InitializeComponent();
16 }
17
18 private void menuItem1_Click(object sender, EventArgs e)
19 {
20 string status;
21 if (this.checkBox1.Checked)
22 {
23 status = "contractor";
24 }
25 else
26 {
27 status = "FTE";
28 }
29
30 MessageBox.Show("You are " + textBox1.Text + ", working at " + this.comboBox1.SelectedItem +
31 " as a " + status, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
32 }
33 }
34 }
![](https://images.cnblogs.com/cnblogs_com/zhtf2014/2.jpg)