日期:2014-05-18 浏览次数:21023 次
#region 退格删除
/// <summary>
/// 退格删除
/// </summary>
private void backSpace()
{
if (this.tempStr.Length > 0)
{
this.tempStr = this.tempStr.Remove(this.tempStr.Length - 1);
this.txtMsg.Text = tempStr;
}
}
#endregion
------解决方案--------------------
实在不行用win API, sendinput, sendmessage 之类
------解决方案--------------------
txtContent.Text = txtContent.Text.SubString(0, txtContent.Text.Length - 1);
------解决方案--------------------