Index: testce/Form1.Designer.cs ================================================================== --- testce/Form1.Designer.cs +++ testce/Form1.Designer.cs @@ -29,12 +29,17 @@ /// private void InitializeComponent() { this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.textBox1 = new System.Windows.Forms.TextBox(); + this.menuItem1 = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // + // mainMenu1 + // + this.mainMenu1.MenuItems.Add(this.menuItem1); + // // textBox1 // this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox1.Location = new System.Drawing.Point(0, 0); this.textBox1.Multiline = true; @@ -42,10 +47,15 @@ this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.textBox1.Size = new System.Drawing.Size(240, 268); this.textBox1.TabIndex = 0; this.textBox1.WordWrap = false; // + // menuItem1 + // + this.menuItem1.Text = "Exit"; + this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(240, 268); @@ -58,7 +68,8 @@ } #endregion private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.MenuItem menuItem1; } } Index: testce/Form1.cs ================================================================== --- testce/Form1.cs +++ testce/Form1.cs @@ -22,7 +22,12 @@ public void Write(string str) { textBox1.Text += str; } + + private void menuItem1_Click(object sender, EventArgs e) + { + Close(); + } } } Index: testce/Form1.resx ================================================================== --- testce/Form1.resx +++ testce/Form1.resx @@ -58,10 +58,11 @@ value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> + @@ -69,10 +70,11 @@ + @@ -86,10 +88,11 @@ + @@ -114,10 +117,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 17, 17 + + + POCKET_PC_2003_PORTRAIT True Index: testce/testce.csproj ================================================================== --- testce/testce.csproj +++ testce/testce.csproj @@ -51,10 +51,13 @@ False False + + + True False @@ -81,17 +84,10 @@ Form1.cs Designer - - {AC139951-261A-4463-B6FA-AEBC25283A66} - System.Data.SQLite - Compact - False - - -