63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace _15_6
|
|
{
|
|
public partial class Form1 : Form
|
|
{
|
|
public Form1()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void 新建NToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Clear();
|
|
this.Text = "新建文档";
|
|
}
|
|
|
|
private void 剪切XToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Cut();
|
|
}
|
|
|
|
private void 复制CToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Copy();
|
|
}
|
|
|
|
private void 粘贴VToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Paste();
|
|
}
|
|
|
|
private void 剪切XToolStripMenuItem1_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Cut();
|
|
}
|
|
|
|
private void 复制CToolStripMenuItem1_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Copy();
|
|
}
|
|
|
|
private void 粘贴VToolStripMenuItem1_Click(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Paste();
|
|
}
|
|
|
|
private void Form1_SizeChanged(object sender, EventArgs e)
|
|
{
|
|
richTextBox1.Width = this.Width - 35;
|
|
richTextBox1.Height = this.Height - 70;
|
|
}
|
|
}
|
|
}
|