C#课程设计报告(完整版源代码)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
西安科技大学《C#语言程序设计》课程设计报告
题目简单记事本的设计院、系(部)计算机科学与技术学院专业及班级计算机网络技术
姓名牛德洋
日期2013/1/17
1 题目要求
使用C#语言设计一个Windows自带记事本,软件界面美观大方,操作简洁易用,功能完备可靠,必须上机调试通过。
程序中应有不少于100~300行的自行编写的代码,代码需书写详细注释。
2 功能需求
实现记事本软件的基本功能,具有文本文件的新建、打开、保存功能,文字的全选、剪切、复制、粘贴、删除、撤销、查找、替换功能,字体类型、格式的设置、显示当前日期与时间的功能,并在此记事本程序基础上增加设置字体颜色,添加状态栏功能。
3 总体设计
4 详细设计
Program.cs:代码如下
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace note
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Form1.Designer.cs代码如下:
namespace note
{
partial class Form1
{
/// 清理所有正在使用的资源。
/// <param name="disposing">如果应释放托管资源,为 true;否则为false。
</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
public void InitializeComponent()
{
ponents = new ponentModel.Container();
System.Windows.Forms.Timer timer1;
ponentResourceManager resources = new ponentResourceManager(typeof(Form1));
this.flowLayoutPanel1 = new
System.Windows.Forms.FlowLayoutPanel();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.文件ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.新建ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.打开ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.保存ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.页面设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.打印PToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.编辑ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.撤消ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.剪切XToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.复制VToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.粘贴ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.删除DToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.查找FToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.查找下一个ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.替换RToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.转到ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.全选AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.时间ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.自动换行WToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.字体FToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
System.Windows.Forms.ToolStripMenuItem();
this.状态栏ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new
System.Windows.Forms.ToolStripMenuItem();
this.帮助主题HToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new
System.Windows.Forms.ToolStripSeparator();
this.关于记事本AToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.新建NToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.打开OToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.保存SToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.打印PToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.toolStripSeparator = new
System.Windows.Forms.ToolStripSeparator();
this.剪切UToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.复制CToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.粘贴PToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new
System.Windows.Forms.ToolStripSeparator();
this.帮助LToolStripButton = new
System.Windows.Forms.ToolStripButton();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel3 = new
System.Windows.Forms.ToolStripStatusLabel();
this.toolStripStatusLabel1 = new
System.Windows.Forms.ToolStripStatusLabel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.contextMenuStrip1 = new
System.Windows.Forms.ContextMenuStrip(ponents);
this.撤消ToolStripMenuItem1 = new
System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator8 = new
System.Windows.Forms.ToolStripSeparator();
this.剪切ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.复制ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.粘贴ToolStripMenuItem1 = new
System.Windows.Forms.ToolStripMenuItem();
this.删除ToolStripMenuItem = new
System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator9 = new
System.Windows.Forms.ToolStripSeparator();
this.全选AToolStripMenuItem1 = new
System.Windows.Forms.ToolStripMenuItem();
this.timer2 = new System.Windows.Forms.Timer(ponents);
timer1 = new System.Windows.Forms.Timer(ponents);
this.flowLayoutPanel1.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
// timer1
timer1.Enabled = true;
timer1.Interval = 10;
timer1.Tick += new
System.EventHandler(this.toolStripStatusLabel3_Click);
// flowLayoutPanel1
this.flowLayoutPanel1.AutoSize = true;
this.flowLayoutPanel1.BackgroundImageLayout =
System.Windows.Forms.ImageLayout.Zoom;
this.flowLayoutPanel1.Controls.Add(this.menuStrip1);
this.flowLayoutPanel1.Dock =
System.Windows.Forms.DockStyle.Top;
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel1.Margin = new
System.Windows.Forms.Padding(0);
= "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(532, 28);
this.flowLayoutPanel1.TabIndex = 0;
// menuStrip1
this.menuStrip1.AccessibleRole =
System.Windows.Forms.AccessibleRole.MenuBar;
this.menuStrip1.BackColor =
System.Drawing.SystemColors.Control;
this.menuStrip1.BackgroundImageLayout =
System.Windows.Forms.ImageLayout.Center;
this.menuStrip1.GripMargin = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.menuStrip1.Items.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.文件ToolStripMenuItem,
this.编辑ToolStripMenuItem,
this.toolStripMenuItem1,
this.toolStripMenuItem2,
this.toolStripMenuItem3});
youtStyle =
System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
= "menuStrip1";
this.menuStrip1.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
this.menuStrip1.Size = new System.Drawing.Size(355, 28);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
// 文件ToolStripMenuItem
this.文件ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.新建ToolStripMenuItem,
this.打开ToolStripMenuItem,
this.保存ToolStripMenuItem,
this.另存为AToolStripMenuItem,
this.toolStripSeparator2,
this.页面设置ToolStripMenuItem,
this.打印PToolStripMenuItem,
this.toolStripSeparator3,
this.退出ToolStripMenuItem});
this.文件 = "文件ToolStripMenuItem";
this.文件ToolStripMenuItem.Size = new System.Drawing.Size(69, 24);
this.文件ToolStripMenuItem.Text = "文件(&F)";
// 新建ToolStripMenuItem
this.新建 = "新建ToolStripMenuItem";
this.新建ToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.N)));
this.新建ToolStripMenuItem.Size = new System.Drawing.Size(188, 24);
this.新建ToolStripMenuItem.Text = "新建(&N)";
this.新建ToolStripMenuItem.Click += new
System.EventHandler(this.new_Click);
// 打开ToolStripMenuItem
this.打开 = "打开ToolStripMenuItem";
this.打开ToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.O)));
this.打开ToolStripMenuItem.Size = new System.Drawing.Size(188, 24);
this.打开ToolStripMenuItem.Text = "打开(&O)";
this.打开ToolStripMenuItem.Click += new
System.EventHandler(this.open_Click);
// 保存ToolStripMenuItem
this.保存 = "保存ToolStripMenuItem";
this.保存ToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.S)));
this.保存ToolStripMenuItem.Size = new System.Drawing.Size(188, 24);
this.保存ToolStripMenuItem.Text = "保存(&S)";
this.保存ToolStripMenuItem.Click += new
System.EventHandler(this.save_Click);
// 另存为AToolStripMenuItem
this.另存为 = "另存为AToolStripMenuItem";
this.另存为AToolStripMenuItem.Size = new
System.Drawing.Size(188, 24);
this.另存为AToolStripMenuItem.Text = "另存为(&A)";
this.另存为AToolStripMenuItem.Click += new
System.EventHandler(this.saveWhere_Click);
// toolStripSeparator2
= "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(185, 6);
// 页面设置ToolStripMenuItem
this.页面设置 = "页面设置ToolStripMenuItem";
this.页面设置ToolStripMenuItem.Size = new
System.Drawing.Size(188, 24);
this.页面设置ToolStripMenuItem.Text = "页面设置(&U)";
this.页面设置ToolStripMenuItem.Click += new
System.EventHandler(this.set_Click);
// 打印PToolStripMenuItem
this.打印 = "打印PToolStripMenuItem";
this.打印PToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.P)));
this.打印PToolStripMenuItem.Size = new System.Drawing.Size(188, 24);
this.打印PToolStripMenuItem.Text = "打印(&P)";
this.打印PToolStripMenuItem.Click += new
System.EventHandler(this.print_Click);
// toolStripSeparator3
= "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(185, 6);
// 退出ToolStripMenuItem
this.退出 = "退出ToolStripMenuItem";
this.退出ToolStripMenuItem.Size = new System.Drawing.Size(188, 24);
this.退出ToolStripMenuItem.Text = "退出(&X)";
this.退出ToolStripMenuItem.Click += new
System.EventHandler(this.exit_Click);
// 编辑ToolStripMenuItem
this.编辑ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.撤消ToolStripMenuItem,
this.toolStripSeparator4,
this.剪切XToolStripMenuItem,
this.复制VToolStripMenuItem,
this.粘贴ToolStripMenuItem,
this.删除DToolStripMenuItem,
this.toolStripSeparator5,
this.查找FToolStripMenuItem,
this.查找下一个ToolStripMenuItem,
this.替换RToolStripMenuItem,
this.转到ToolStripMenuItem,
this.toolStripSeparator6,
this.全选AToolStripMenuItem,
this.时间ToolStripMenuItem});
this.编辑 = "编辑ToolStripMenuItem";
this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(69, 24);
this.编辑ToolStripMenuItem.Text = "编辑(&E)";
this.编辑ToolStripMenuItem.Click += new
System.EventHandler(this.编辑ToolStripMenuItem_Click);
// 撤消ToolStripMenuItem
this.撤消ToolStripMenuItem.Enabled = false;
this.撤消 = "撤消ToolStripMenuItem";
this.撤消ToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.撤消ToolStripMenuItem.Text = "撤消(&U)";
this.撤消ToolStripMenuItem.Click += new
System.EventHandler(this.return_Click);
// toolStripSeparator4
= "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(198, 6);
// 剪切XToolStripMenuItem
this.剪切XToolStripMenuItem.Enabled = false;
this.剪切 = "剪切XToolStripMenuItem";
this.剪切XToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.X)));
this.剪切XToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.剪切XToolStripMenuItem.Text = "剪切(&T)";
this.剪切XToolStripMenuItem.Click += new
System.EventHandler(this.剪切XToolStripMenuItem_Click);
// 复制VToolStripMenuItem
this.复制VToolStripMenuItem.Enabled = false;
this.复制 = "复制VToolStripMenuItem";
this.复制VToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.C)));
this.复制VToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.复制VToolStripMenuItem.Text = "复制(&C)";
this.复制VToolStripMenuItem.Click += new
System.EventHandler(this.复制VToolStripMenuItem_Click);
// 粘贴ToolStripMenuItem
this.粘贴 = "粘贴ToolStripMenuItem";
this.粘贴ToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.V)));
this.粘贴ToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.粘贴ToolStripMenuItem.Text = "粘贴(&P)";
this.粘贴ToolStripMenuItem.Click += new
System.EventHandler(this.粘贴ToolStripMenuItem_Click);
// 删除DToolStripMenuItem
this.删除DToolStripMenuItem.Enabled = false;
this.删除 = "删除DToolStripMenuItem";
this.删除DToolStripMenuItem.ShortcutKeys =
System.Windows.Forms.Keys.Delete;
this.删除DToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.删除DToolStripMenuItem.Text = "删除(&L)";
this.删除DToolStripMenuItem.Click += new
System.EventHandler(this.删除DToolStripMenuItem_Click);
// toolStripSeparator5
= "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(198, 6);
// 查找FToolStripMenuItem
this.查找FToolStripMenuItem.Enabled = false;
this.查找 = "查找FToolStripMenuItem";
this.查找FToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.F)));
this.查找FToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.查找FToolStripMenuItem.Text = "查找(&F)";
this.查找FToolStripMenuItem.Click += new
System.EventHandler(this.查找FToolStripMenuItem_Click);
// 查找下一个ToolStripMenuItem
this.查找下一个ToolStripMenuItem.Enabled = false;
this.查找下一个 = "查找下一个ToolStripMenuItem";
this.查找下一个ToolStripMenuItem.ShortcutKeys =
System.Windows.Forms.Keys.F3;
this.查找下一个ToolStripMenuItem.Size = new
System.Drawing.Size(201, 24);
this.查找下一个ToolStripMenuItem.Text = "查找下一个(&N)";
// 替换RToolStripMenuItem
this.替换 = "替换RToolStripMenuItem";
this.替换RToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.H)));
this.替换RToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.替换RToolStripMenuItem.Text = "替换(&R)";
this.替换RToolStripMenuItem.Click += new
System.EventHandler(this.替换RToolStripMenuItem_Click);
// 转到ToolStripMenuItem
this.转到 = "转到ToolStripMenuItem";
this.转到ToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.G)));
this.转到ToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.转到ToolStripMenuItem.Text = "转到(&G)";
// toolStripSeparator6
= "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(198, 6);
// 全选AToolStripMenuItem
this.全选 = "全选AToolStripMenuItem";
this.全选AToolStripMenuItem.ShortcutKeys =
((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control |
System.Windows.Forms.Keys.A)));
this.全选AToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.全选AToolStripMenuItem.Text = "全选(&A)";
this.全选AToolStripMenuItem.Click += new
System.EventHandler(this.全选AToolStripMenuItem_Click);
// 时间ToolStripMenuItem
this.时间 = "时间ToolStripMenuItem";
this.时间ToolStripMenuItem.ShortcutKeys =
System.Windows.Forms.Keys.F5;
this.时间ToolStripMenuItem.Size = new System.Drawing.Size(201, 24);
this.时间ToolStripMenuItem.Text = "时间/日期(&D)";
this.时间ToolStripMenuItem.Click += new
System.EventHandler(this.时间ToolStripMenuItem_Click);
// toolStripMenuItem1
this.toolStripMenuItem1.DropDownItems.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.自动换行WToolStripMenuItem,
this.字体FToolStripMenuItem});
= "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(73, 24);
this.toolStripMenuItem1.Text = "格式(&O)";
// 自动换行WToolStripMenuItem
this.自动换行WToolStripMenuItem.Checked = true;
this.自动换行WToolStripMenuItem.CheckState =
System.Windows.Forms.CheckState.Checked;
this.自动换行 = "自动换行WToolStripMenuItem";
this.自动换行WToolStripMenuItem.Size = new
System.Drawing.Size(163, 24);
this.自动换行WToolStripMenuItem.Text = "自动换行(&W)";
this.自动换行WToolStripMenuItem.Click += new
System.EventHandler(this.自动换行WToolStripMenuItem_Click);
// 字体FToolStripMenuItem
this.字体 = "字体FToolStripMenuItem";
this.字体FToolStripMenuItem.Size = new System.Drawing.Size(163, 24);
this.字体FToolStripMenuItem.Text = "字体(&F)";
this.字体FToolStripMenuItem.Click += new
System.EventHandler(this.font_Click);
// toolStripMenuItem2
this.toolStripMenuItem2.DropDownItems.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.工具栏KToolStripMenuItem,
this.状态栏ToolStripMenuItem});
= "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(71, 24);
this.toolStripMenuItem2.Text = "查看(&V)";
// 工具栏KToolStripMenuItem
this.工具栏KToolStripMenuItem.Checked = true;
this.工具栏KToolStripMenuItem.CheckState =
System.Windows.Forms.CheckState.Checked;
this.工具栏 = "工具栏KToolStripMenuItem";
this.工具栏KToolStripMenuItem.Size = new
System.Drawing.Size(143, 24);
this.工具栏KToolStripMenuItem.Text = "工具栏(&K)";
this.工具栏KToolStripMenuItem.Click += new
System.EventHandler(this.工具栏KToolStripMenuItem_Click);
// 状态栏ToolStripMenuItem
this.状态栏ToolStripMenuItem.Checked = true;
this.状态栏ToolStripMenuItem.CheckState =
System.Windows.Forms.CheckState.Checked;
this.状态栏 = "状态栏ToolStripMenuItem";
this.状态栏ToolStripMenuItem.Size = new System.Drawing.Size(143, 24);
this.状态栏ToolStripMenuItem.Text = "状态栏(&S)";
this.状态栏ToolStripMenuItem.Click += new
System.EventHandler(this.状态栏ToolStripMenuItem_Click);
// toolStripMenuItem3
this.toolStripMenuItem3.DropDownItems.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.帮助主题HToolStripMenuItem,
this.toolStripSeparator7,
this.关于记事本AToolStripMenuItem});
= "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(73, 24);
this.toolStripMenuItem3.Text = "帮助(&H)";
// 帮助主题HToolStripMenuItem
this.帮助主题 = "帮助主题HToolStripMenuItem";
this.帮助主题HToolStripMenuItem.Size = new
System.Drawing.Size(174, 24);
this.帮助主题HToolStripMenuItem.Text = "帮助主题(&H)";
this.帮助主题HToolStripMenuItem.Click += new
System.EventHandler(this.帮助主题HToolStripMenuItem_Click);
// toolStripSeparator7
= "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(171, 6);
// 关于记事本AToolStripMenuItem
this.关于记事本 = "关于记事本AToolStripMenuItem";
this.关于记事本AToolStripMenuItem.Size = new
System.Drawing.Size(174, 24);
this.关于记事本AToolStripMenuItem.Text = "关于记事本(&A)";
this.关于记事本AToolStripMenuItem.Click += new
System.EventHandler(this.关于记事本AToolStripMenuItem_Click);
// toolStrip1
this.toolStrip1.BackColor =
System.Drawing.SystemColors.ControlLight;
this.toolStrip1.Items.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.新建NToolStripButton,
this.打开OToolStripButton,
this.保存SToolStripButton,
this.打印PToolStripButton,
this.toolStripSeparator,
this.剪切UToolStripButton,
this.复制CToolStripButton,
this.粘贴PToolStripButton,
this.toolStripSeparator1,
this.帮助LToolStripButton});
youtStyle =
System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
this.toolStrip1.Location = new System.Drawing.Point(0, 28);
= "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(532, 25);
this.toolStrip1.TabIndex = 1;
this.toolStrip1.Text = "toolStrip1";
// 新建NToolStripButton
this.新建NToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.新建NToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("新建NToolStripButton.Image")));
this.新建NToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.新建 = "新建NToolStripButton";
this.新建NToolStripButton.Size = new System.Drawing.Size(23, 22);
this.新建NToolStripButton.Text = "新建(&N)";
this.新建NToolStripButton.Click += new
System.EventHandler(this.new_Click);
// 打开OToolStripButton
this.打开OToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.打开OToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("打开OToolStripButton.Image")));
this.打开OToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.打开 = "打开OToolStripButton";
this.打开OToolStripButton.Size = new System.Drawing.Size(23, 22);
this.打开OToolStripButton.Text = "打开(&O)";
this.打开OToolStripButton.Click += new
System.EventHandler(this.open_Click);
// 保存SToolStripButton
this.保存SToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.保存SToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("保存SToolStripButton.Image")));
this.保存SToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.保存 = "保存SToolStripButton";
this.保存SToolStripButton.Size = new System.Drawing.Size(23, 22);
this.保存SToolStripButton.Text = "保存(&S)";
this.保存SToolStripButton.Click += new
System.EventHandler(this.save_Click);
// 打印PToolStripButton
this.打印PToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.打印PToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("打印PToolStripButton.Image")));
this.打印PToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.打印 = "打印PToolStripButton";
this.打印PToolStripButton.Size = new System.Drawing.Size(23, 22);
this.打印PToolStripButton.Text = "打印(&P)";
this.打印PToolStripButton.Click += new
System.EventHandler(this.print_Click);
// toolStripSeparator
= "toolStripSeparator";
this.toolStripSeparator.Size = new System.Drawing.Size(6, 25);
// 剪切UToolStripButton
this.剪切UToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.剪切UToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("剪切UToolStripButton.Image")));
this.剪切UToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.剪切 = "剪切UToolStripButton";
this.剪切UToolStripButton.Size = new System.Drawing.Size(23, 22);
this.剪切UToolStripButton.Text = "剪切(&U)";
this.剪切UToolStripButton.Click += new System.EventHandler(this.剪切XToolStripMenuItem_Click);
// 复制CToolStripButton
this.复制CToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.复制CToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("复制CToolStripButton.Image")));
this.复制CToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.复制 = "复制CToolStripButton";
this.复制CToolStripButton.Size = new System.Drawing.Size(23, 22);
this.复制CToolStripButton.Text = "复制(&C)";
this.复制CToolStripButton.Click += new System.EventHandler(this.复制VToolStripMenuItem_Click);
// 粘贴PToolStripButton
this.粘贴PToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.粘贴PToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("粘贴PToolStripButton.Image")));
this.粘贴PToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.粘贴 = "粘贴PToolStripButton";
this.粘贴PToolStripButton.Size = new System.Drawing.Size(23, 22);
this.粘贴PToolStripButton.Text = "粘贴(&P)";
this.粘贴PToolStripButton.Click += new System.EventHandler(this.粘贴ToolStripMenuItem_Click);
// toolStripSeparator1
= "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
// 帮助LToolStripButton
this.帮助LToolStripButton.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.帮助LToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("帮助LToolStripButton.Image")));
this.帮助LToolStripButton.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.帮助 = "帮助LToolStripButton";
this.帮助LToolStripButton.Size = new System.Drawing.Size(23, 22);
this.帮助LToolStripButton.Text = "帮助(&L)";
this.帮助LToolStripButton.Click += new System.EventHandler(this.帮助主题HToolStripMenuItem_Click);
// statusStrip1
this.statusStrip1.Items.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel3,
this.toolStripStatusLabel1});
this.statusStrip1.Location = new System.Drawing.Point(0, 430);
= "statusStrip1";
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0);
this.statusStrip1.Size = new System.Drawing.Size(532, 25);
this.statusStrip1.TabIndex = 2;
this.statusStrip1.Text = "statusStrip1";
this.toolStripStatusLabel3.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Text;
= "toolStripStatusLabel3";
this.toolStripStatusLabel3.Padding = new
System.Windows.Forms.Padding(20, 0, 0, 0);
this.toolStripStatusLabel3.RightToLeft =
System.Windows.Forms.RightToLeft.No;
this.toolStripStatusLabel3.Size = new System.Drawing.Size(59, 20);
this.toolStripStatusLabel3.Text = "就绪";
this.toolStripStatusLabel3.Click += new
System.EventHandler(this.toolStripStatusLabel3_Click);
// toolStripStatusLabel1
this.toolStripStatusLabel1.MergeAction =
System.Windows.Forms.MergeAction.Insert;
= "toolStripStatusLabel1";
this.toolStripStatusLabel1.RightToLeft =
System.Windows.Forms.RightToLeft.No;
this.toolStripStatusLabel1.Size = new System.Drawing.Size(453, 20);
this.toolStripStatusLabel1.Spring = true;
this.toolStripStatusLabel1.Text = "显示时间/日期";
this.toolStripStatusLabel1.TextAlign =
System.Drawing.ContentAlignment.TopRight;
this.toolStripStatusLabel1.Click += new
System.EventHandler(this.toolStripStatusLabel1_Click);
// richTextBox1
this.richTextBox1.BorderStyle =
System.Windows.Forms.BorderStyle.None;
this.richTextBox1.ContextMenuStrip = this.contextMenuStrip1;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 53);
this.richTextBox1.Margin = new System.Windows.Forms.Padding(4);
= "richTextBox1";
this.richTextBox1.ScrollBars =
System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
this.richTextBox1.Size = new System.Drawing.Size(532, 377);
this.richTextBox1.TabIndex = 3;
this.richTextBox1.Text = "";
// contextMenuStrip1
this.contextMenuStrip1.DropShadowEnabled = false;
this.contextMenuStrip1.Items.AddRange(new
System.Windows.Forms.ToolStripItem[] {
this.撤消ToolStripMenuItem1,
this.toolStripSeparator8,
this.剪切ToolStripMenuItem,
this.复制ToolStripMenuItem,
this.粘贴ToolStripMenuItem1,
this.删除ToolStripMenuItem,。