using System;
using System.Drawing;
using System.Windows.Forms;
public class TextBoxTextChanged : Form
{
TextBox txt;
string strOriginal;
public TextBoxTextChanged()
{
Size = new Size(300, 375);
txt = new TextBox();
txt.Parent = this;
txt.Text = "Enter text here.";
txt.Size = new Size(ClientSize.Width - 20, ClientSize.Height - 100);
txt.Location = new Point(10,10);
txt.Multiline = true;
txt.BorderStyle = BorderStyle.Fixed3D;
txt.ScrollBars = ScrollBars.Vertical;
txt.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
strOriginal = txt.Text;
}
static void Main()
{
Application.Run(new TextBoxTextChanged());
}
}
|