using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void newToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Dispose();
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
Clipboard.SetText(txt.SelectedText);
}
private void cutToolStripMenuItem_Click(object sender, EventArgs e)
{
Clipboard.SetText(txt.SelectedText);
txt.SelectedText = string.Empty;
}
private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
{
string xx = Clipboard.GetText();
txt.Text = txt.Text.Insert(txt.SelectionStart, xx);
}
private void Form1_Load(object sender, EventArgs e)
{
txt.Text = System.IO.File.ReadAllText(@"C:\Data.txt");
}
private void wordWrapToolStripMenuItem_Click(object sender, EventArgs e)
{
txt.WordWrap = !txt.WordWrap;
}
}
}