winform 记事本 剪切 粘贴 全选 撤销

 private void 撤消UToolStripMenuItem_Click(object sender, EventArgs e)
{
textBox1.Undo();
} private void 剪切TToolStripMenuItem_Click(object sender, EventArgs e)
{
if (textBox1.SelectionLength>)
{
textBox1.Cut();
}
} private void 复制CToolStripMenuItem_Click(object sender, EventArgs e)
{
if (textBox1.SelectionLength > )
{
textBox1.Copy();
}
} private void 粘贴PToolStripMenuItem_Click(object sender, EventArgs e)
{
textBox1.Paste();
} private void 全选AToolStripMenuItem_Click(object sender, EventArgs e)
{
textBox1.SelectAll();
}
上一篇:第四百零五节,centos7下搭建sentry错误日志服务器,接收python以及Django错误,


下一篇:RyuBook1.0案例二:Traffic Monitor项目源码分析