C#中e.Handle是什么意思 取消事件

举个例子:

private void TextBox_KeyPress(object sender, KeyPressEventArgs e)

{          

     e.Handled = true;     

 }

将 Handled 设置为 true,以取消 KeyPress 事件 只要程序运行到 e.Handle=true; 就退出。

相关文章:

  • 2021-06-14
  • 2021-09-20
  • 2021-06-04
  • 2022-02-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
相关资源
相似解决方案