1.    using System;
2.    using System.Drawing; 
3.    using System.Collections; 
4.    using System.ComponentModel; 
5.    using System.Windows.Forms; 
6.     
7.    namespace PocketDice 
8.    { 
9.        public class frmInputBox:System.Windows.Forms.Form 
10.    { 
11.        public System.Windows.Forms.Label lblPrompt; 
12.        public System.Windows.Forms.TextBox txtValue; 
13.        private Microsoft.WindowsCE.Forms.InputPanel inputPanel1; 
14.        private System.Windows.Forms.MainMenu mainMenu1; 
15.        private System.Windows.Forms.Button btnOK; 
16.
17.        public frmInputBox() 
18.       { 
19.          InitializeComponent(); 
20.        } 
21.    
22.        protected override void Dispose( bool disposing ) 
23.        { 
24.            base.Dispose( disposing ); 
25.        } 
26.
27.        #region Windows Form Designer generated code 
28.        private void InitializeComponent() 
29.        { 
30.            System.Resources.ResourceManager resources = new 
System.Resources.ResourceManager(typeof(frmInputBox)); 
31.            this.lblPrompt = new System.Windows.Forms.Label(); 
32.            this.txtValue = new System.Windows.Forms.TextBox(); 
33.            this.btnOK = new System.Windows.Forms.Button(); 
34.            this.inputPanel1 = new 
Microsoft.WindowsCE.Forms.InputPanel(); 
35.            this.mainMenu1 = new System.Windows.Forms.MainMenu(); 
36.            // 
37.            // lblPrompt 
38.            // 
39.            this.lblPrompt.Location = new System.Drawing.Point(8, 8); 
40.            this.lblPrompt.Size = new System.Drawing.Size(224, 40); 
41.            this.lblPrompt.Text = "Enter a value:"; 
42.            // 
43.            // txtValue 
44.            // 
45.            this.txtValue.Location = new System.Drawing.Point(8, 56); 
46.            this.txtValue.Size = new System.Drawing.Size(224, 22); 
47.            this.txtValue.Text = ""; 
48.            // 
49.            // btnOK 
50.            // 
51.            this.btnOK.Location = new System.Drawing.Point(160, 88); 
52.            this.btnOK.Size = new System.Drawing.Size(72, 24); 
53.            this.btnOK.Text = "OK"; 
54.            this.btnOK.Click += new 
System.EventHandler(this.btnOK_Click); 
55.            this.FormBorderStyle = 
System.Windows.Forms.FormBorderStyle.FixedDialog; 
56.            // 
57.            // frmInputBox 
58.            // 
59.            this.ClientSize = new System.Drawing.Size(240, 120); 
60.            this.Controls.Add(this.btnOK); 
61.            this.Controls.Add(this.txtValue); 
62.            this.Controls.Add(this.lblPrompt); 
63.            this.Icon = 
((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 
64.            this.MaximizeBox = false; 
65.            this.Menu = this.mainMenu1; 
66.            this.MinimizeBox = false; 
67.            this.Text = "Input"; 
68.            this.Closing += new 
System.ComponentModel.CancelEventHandler(this.frmInputBox_Closing); 
69.            this.Load += new 
System.EventHandler(this.frmInputBox_Load); 
70.    
71.        } 
72.         #endregion 
73.
74.        private void frmInputBox_Load(object sender, System.EventArgs e) 
75.        { 
76.            this.txtValue.Focus(); 
77.            this.inputPanel1.Enabled = true; 
78.        } 
79.
80.        private void btnOK_Click(object sender, System.EventArgs e) 
81.        { 
82.            Close(); 
83.        } 
84.
85.        private void frmInputBox_Closing(object sender, 
System.ComponentModel.CancelEventArgs e)
86.        { 
87.        this.inputPanel1.Enabled = false; 
88.        } 
89.
90.    } 
91.
92.  } 
