日期:2014-05-18  浏览次数:20657 次

c#窗体应用程序中,敲回车以后才引发textChanged事件
效果是:不要textBox稍微改变就触发textChanged事件

------解决方案--------------------
在keypress里判断回车键
 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
xxxx
}
else 
{
xx
}
}