keys是按键的枚举类型
private void txtPropertyValue_KeyPress(object sender, KeyPressEventArgs e) { if ((Keys)e.KeyChar == Keys.Enter) { Save(); } }
keys是按键的枚举类型
private void txtPropertyValue_KeyPress(object sender, KeyPressEventArgs e) { if ((Keys)e.KeyChar == Keys.Enter) { Save(); } }