From de45aece667af6a25c1840d4cdfc27935fb0b490 Mon Sep 17 00:00:00 2001 From: SmallFox <2806143047@qq.com> Date: Sat, 4 Apr 2026 22:07:56 +0800 Subject: 请输入文本 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改了个名,下次写多点再上传,今天搞搞测试 --- NotePad/NotePad/Form1.Designer.cs | 10 ++++++---- NotePad/NotePad/Form1.cs | 8 ++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/NotePad/NotePad/Form1.Designer.cs b/NotePad/NotePad/Form1.Designer.cs index 6e310b3..2b0e1db 100644 --- a/NotePad/NotePad/Form1.Designer.cs +++ b/NotePad/NotePad/Form1.Designer.cs @@ -1,6 +1,6 @@ namespace NotePad { - partial class Form1 + partial class NotePad { /// /// Required designer variable. @@ -30,14 +30,16 @@ { this.SuspendLayout(); // - // Form1 + // NotePad // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(584, 411); - this.Name = "Form1"; + this.KeyPreview = true; + this.Name = "NotePad"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Form1"; + this.Text = "记事本"; + this.Load += new System.EventHandler(this.NotePad_Load); this.ResumeLayout(false); } diff --git a/NotePad/NotePad/Form1.cs b/NotePad/NotePad/Form1.cs index f1b7b5e..f8dfc1a 100644 --- a/NotePad/NotePad/Form1.cs +++ b/NotePad/NotePad/Form1.cs @@ -10,12 +10,16 @@ using System.Windows.Forms; namespace NotePad { - public partial class Form1 : Form + public partial class NotePad : Form { - public Form1() + public NotePad() { InitializeComponent(); } + private void NotePad_Load(object sender, EventArgs e) + { + + } } } -- cgit