C#中e.Handle是什么意思 取消事件
举个例子:
private void TextBox_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = true;
}
将 Handled 设置为 true,以取消 KeyPress 事件 只要程序运行到 e.Handle=true; 就退出。
作者:Work Hard Work Smart 出处:http://www.cnblogs.com/linlf03/ 欢迎任何形式的转载,未经作者同意,请保留此段声明!