日期:2014-05-18 浏览次数:20995 次
protected class MyTextBox : TextBox
{
public override string Text
{
get
{
string tempStr = base.Text;
tempStr = tempStr.Replace("\r\n", "\n");
return tempStr;
}
set
{
base.Text = value;
}
}
}