C#中e.Handle是什么意思 取消事件
举个例子:
private void TextBox_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = true;
}
将 Handled 设置为 true,以取消 KeyPress 事件 只要程序运行到 e.Handle=true; 就退出。
C#中e.Handle是什么意思 取消事件
举个例子:
private void TextBox_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = true;
}
将 Handled 设置为 true,以取消 KeyPress 事件 只要程序运行到 e.Handle=true; 就退出。