统一归档20260319
This commit is contained in:
62
CS/lab15/15_6/Form1.cs
Normal file
62
CS/lab15/15_6/Form1.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user