keys是按键的枚举类型
private void txtPropertyValue_KeyPress(object sender, KeyPressEventArgs e) { if ((Keys)e.KeyChar == Keys.Enter) { Save(); } }
2023-10-30 20:31:34
keys是按键的枚举类型
private void txtPropertyValue_KeyPress(object sender, KeyPressEventArgs e) { if ((Keys)e.KeyChar == Keys.Enter) { Save(); } }